From 7a7f56e2e7277a55c871f3313babf4b77a314663 Mon Sep 17 00:00:00 2001 From: Gustavo Bernardo Date: Thu, 10 Nov 2016 09:05:29 -0300 Subject: [PATCH] Changed items colors and topics only appear if there are any items [Issue:#251] --- users/templates/users/search.html | 66 ++++++++++++++++++++++++++++++------------------------------------ 1 file changed, 30 insertions(+), 36 deletions(-) diff --git a/users/templates/users/search.html b/users/templates/users/search.html index 256504a..a760525 100644 --- a/users/templates/users/search.html +++ b/users/templates/users/search.html @@ -5,7 +5,6 @@ - @@ -21,47 +20,48 @@ {% block content %}

Search Result:

{{qtd}} items found + +{% if link_list %}
+{% endif%} + +{% if file_list %}
- {% if file_list %} + {% for file in file_list %}
  • {{ file.file_type.icon }} {{ file.name }}
  • {% endfor%} - {% else %} - {% trans 'No results found' %} - {% endif %} +
    @@ -72,65 +72,65 @@
    +{% endif %} +{% if forum_list %}
    - {% if forum_list %} {% for forum in forum_list %}
  • {{ forum }}
  • {% endfor %} - {% else %} - - {% trans 'No results found' %} - {% endif %}
    +{% endif %} + +{% if exam_list %}
    - {% if exam_list %} + {% for exam in exam_list %} + {{exam.name}} + {% endfor %} - {% else %} - {% trans 'No results found' %} - {% endif %}
    +{% endif %} + +{% if poll_list %}
    - {% if poll_list %} + {% for poll in poll_list %}
  • {% trans 'poll' %} {{ poll.name }}
  • {% endfor %} - {% else %} - {% trans 'No results found' %} - {% endif %} + @@ -138,16 +138,10 @@
    +{% endif %}
    - - - + + {% endblock %} -- libgit2 0.21.2