# HG changeset patch # User cavaliet # Date 1361285197 -3600 # Node ID 962c6986211558ab8c39e06f34bfad917ed7fa8d # Parent a766937acc12a9e07c6a69c9657601179dbab30c clean templates diff -r a766937acc12 -r 962c69862115 src/egonomy/templates/egonomy_all_fragments.html --- a/src/egonomy/templates/egonomy_all_fragments.html Tue Feb 19 13:14:20 2013 +0100 +++ b/src/egonomy/templates/egonomy_all_fragments.html Tue Feb 19 15:46:37 2013 +0100 @@ -3,7 +3,6 @@ {% load i18n %} {% load thumbnail %} {% load navigation %} -{% load highlight %} {% block title %}{% trans "All fragments" %}{% endblock %} @@ -27,7 +26,7 @@
- {% with frgmt=frg.object|default:frg %} + {% with frgmt=frg.object|default:frg %}{# frg.object in search case, frg otherwise #} {% with image=frgmt.image.info.image_file %} {% if image %} {% if image|is_portrait %} @@ -53,7 +52,7 @@ {% endwith %}
-

{% if search %}{{ frg.highlighted.title|first|safe|default:frg.title }}{% else %}{{ frg.title }}{% endif %}

+

{{ frg.highlighted.title|first|safe|default:frg.title }}

{% trans "Annotated by" %} {{ frg.author }}

{% endfor %} diff -r a766937acc12 -r 962c69862115 src/egonomy/templates/egonomy_all_pictures.html --- a/src/egonomy/templates/egonomy_all_pictures.html Tue Feb 19 13:14:20 2013 +0100 +++ b/src/egonomy/templates/egonomy_all_pictures.html Tue Feb 19 15:46:37 2013 +0100 @@ -3,7 +3,6 @@ {% load i18n %} {% load thumbnail %} {% load navigation %} -{% load highlight %} {% block title %}{% trans "All pictures" %}{% endblock %} @@ -26,7 +25,7 @@
  • - {% with img.info.image_file as image %} + {% with image=img.info.image_file %} {% if image %} {% if image|is_portrait %} {% thumbnail image "x110" format="PNG" crop="center" as im %} @@ -46,9 +45,9 @@ {% endif %} {% endwith %}
    -

    {% if img.metadata.titre %}{% if search %}{% highlight img.metadata.titre with search html_tag "span" css_class "highlight" %}{% else %}{{ img.metadata.titre }}{% endif %}{% else %}({% trans "No title" %}){% endif %}

    -

    {% trans "Author" %} : {% if img.metadata.auteur %}{{ img.metadata.auteur }}{% else %}({% trans "Not documented" %}){% endif %}

    -
  • +

    {{ img.metadata.titre|default:_("No title") }}

    +

    {% trans "Author" %} : {{ img.metadata.auteur|default:_("Not documented") }}

    + {% endfor %} {% if nb_pages > 1 %}

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

    {% endif %}