# HG changeset patch # User veltr # Date 1372342664 -7200 # Node ID 928583c82325bb48bbfe00c62e107989a8c44a91 # Parent b7fabb9e5d9fa81b07e1812819fcb6571891d8ee# Parent 962fb2da996c53d532203c8e3f921f1f8fb8854f Merge with 962fb2da996c53d532203c8e3f921f1f8fb8854f diff -r b7fabb9e5d9f -r 928583c82325 integration/v2/css/style.css --- a/integration/v2/css/style.css Thu Jun 27 16:13:51 2013 +0200 +++ b/integration/v2/css/style.css Thu Jun 27 16:17:44 2013 +0200 @@ -206,7 +206,7 @@ .box-edition h3{color: #777;font-family: 'Lato'; font-size: 14px; margin-bottom: 6px;} .list-key-search a{ background-image: url(../img/icon-search.png);} -.list-key-add a{ background-image: url(../img/icon-plus-15.png);} +.list-key-add a{background-image: url(../img/icons-15.png); background-position: right 6px top -53px !important; } .list-keywords li{display: inline-block; float: left; margin: 0 8px 8px 0;} .list-keywords a{color: #7F7F7F; font-family: 'Lato'; font-size: 12px; display: inline-block; height: 28px; line-height: 28px; padding: 0 30px 0 6px; @@ -270,6 +270,10 @@ height: 110px; width: 110px; } +.square-fragment-177 { + height: 177px; + width: 177px; +} .square-fragment-225 { height: 225px; width: 225px; diff -r b7fabb9e5d9f -r 928583c82325 integration/v2/js/main.js diff -r b7fabb9e5d9f -r 928583c82325 src/egonomy/models.py --- a/src/egonomy/models.py Thu Jun 27 16:13:51 2013 +0200 +++ b/src/egonomy/models.py Thu Jun 27 16:17:44 2013 +0200 @@ -57,7 +57,7 @@ return self.thesaurus_pertimm.replace("|", ",").split(",") @property - def tags(self): + def tag_list(self): # all keywords mots_cles + titre_pertimm+ description_pertimm + thesaurus_pertimmreturn # merged into one sorted list moc = self.mots_cles.split(",") @@ -84,6 +84,10 @@ id = models.CharField(null=False, blank=False, max_length=15, primary_key=True) metadata = models.ForeignKey(ImageMetadata) info = models.ForeignKey(ImageInfo, null=True, blank=True) + + @property + def tag_list(self): + return self.metadata.tag_list class Fragment(models.Model): diff -r b7fabb9e5d9f -r 928583c82325 src/egonomy/static/egonomy/css/style.css --- a/src/egonomy/static/egonomy/css/style.css Thu Jun 27 16:13:51 2013 +0200 +++ b/src/egonomy/static/egonomy/css/style.css Thu Jun 27 16:17:44 2013 +0200 @@ -206,7 +206,7 @@ .box-edition h3{color: #777;font-family: 'Lato'; font-size: 14px; margin-bottom: 6px;} .list-key-search a{ background-image: url(../img/icon-search.png);} -.list-key-add a{ background-image: url(../img/icon-plus-15.png);} +.list-key-add a{background-image: url(../img/icons-15.png); background-position: right 6px top -53px !important; } .list-keywords li{display: inline-block; float: left; margin: 0 8px 8px 0;} .list-keywords a{color: #7F7F7F; font-family: 'Lato'; font-size: 12px; display: inline-block; height: 28px; line-height: 28px; padding: 0 30px 0 6px; @@ -270,6 +270,10 @@ height: 110px; width: 110px; } +.square-fragment-177 { + height: 177px; + width: 177px; +} .square-fragment-225 { height: 225px; width: 225px; diff -r b7fabb9e5d9f -r 928583c82325 src/egonomy/templates/egonomy_annotate_picture.html --- a/src/egonomy/templates/egonomy_annotate_picture.html Thu Jun 27 16:13:51 2013 +0200 +++ b/src/egonomy/templates/egonomy_annotate_picture.html Thu Jun 27 16:17:44 2013 +0200 @@ -93,7 +93,7 @@
{% trans "Annotated by" %} {{ fragment.author }}
-
- {% endthumbnail %}
-
- {% else %}
-
- {% endif %}
- {% endwith %}
- {% endwith %}
- {% endifequal %}
+ {% include 'partial/item_in_collection_list.html' %}
{% endfor %}
{% endifequal %}
+ {% ifequal display "mosaic" %}
+