# HG changeset patch # User cavaliet # Date 1361796898 -3600 # Node ID a085d708c4076ac77235892fb5d09865578da2bf # Parent 3a6b48269fa0e8c47ba4411832c3b3c040040e9f user fragment page and enhance pertimm display. diff -r 3a6b48269fa0 -r a085d708c407 src/egonomy/models.py --- a/src/egonomy/models.py Mon Feb 25 12:25:48 2013 +0100 +++ b/src/egonomy/models.py Mon Feb 25 13:54:58 2013 +0100 @@ -37,6 +37,10 @@ titre_pertimm = models.TextField(null=True, blank=True) description_pertimm = models.TextField(null=True, blank=True) thesaurus_pertimm = models.TextField(null=True, blank=True) + + @property + def thesaurus_pertimm_str(self): + return self.thesaurus_pertimm.replace("|", ",") class ImageInfo(models.Model): diff -r 3a6b48269fa0 -r a085d708c407 src/egonomy/templates/egonomy_all_fragments.html --- a/src/egonomy/templates/egonomy_all_fragments.html Mon Feb 25 12:25:48 2013 +0100 +++ b/src/egonomy/templates/egonomy_all_fragments.html Mon Feb 25 13:54:58 2013 +0100 @@ -16,8 +16,11 @@

{% trans "Search results for" %} « {{ search }} » : {% endifequal %} {% trans "All fragments" %}

+ {% elif user_fragments %} +

{% trans "Fragments created by" %} : {{ username }}

+ {% trans "All fragments" %} {% else %} -

{% trans "All pictures" %}

+

{% trans "All fragments" %}

{% endif %} {% if nb_pages %}

{% build_pagination nb_pages cur_page_nb url_pagination "contents_page clickable" %}

{% endif %} diff -r 3a6b48269fa0 -r a085d708c407 src/egonomy/templates/egonomy_annotate_picture.html --- a/src/egonomy/templates/egonomy_annotate_picture.html Mon Feb 25 12:25:48 2013 +0100 +++ b/src/egonomy/templates/egonomy_annotate_picture.html Mon Feb 25 13:54:58 2013 +0100 @@ -69,7 +69,7 @@ {% trans "Pertimm thesaurus" %} : - {{ img.metadata.thesaurus_pertimm|default:"" }} + {{ img.metadata.thesaurus_pertimm_str|default:"" }}