From 18fe37fc7a322f4acee4764ba95814f707af3225 Mon Sep 17 00:00:00 2001 From: Gustavo Bernardo Date: Tue, 8 Nov 2016 13:44:46 -0300 Subject: [PATCH] Search template added [Issue:#251] --- users/templates/users/search.html | 179 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 153 insertions(+), 26 deletions(-) diff --git a/users/templates/users/search.html b/users/templates/users/search.html index fe0ea33..256504a 100644 --- a/users/templates/users/search.html +++ b/users/templates/users/search.html @@ -1,26 +1,153 @@ - -

Links

-{% for link in link_list %} - {{link.name}}
-{% endfor %} - -

Polls

-{% for poll in poll_list %} - {{poll.name}}
-{% endfor %} - -

Exams

-{% for exam in exam_list %} - {{exam.name}}
-{% endfor %} - -

Forums

-{% for forum in forum_list %} - {{forum.name}}
-{% endfor %} - -

Files

-{% for file in file_list %} - {{file.name}}
-{% endfor %} - +{% extends 'home.html' %} + +{% load i18n pagination django_bootstrap_breadcrumbs permission_tags static %} +{% block javascript %} + + + + + + + +{% endblock %} + +{% block breadcrumbs %} + {{ block.super }} + {% breadcrumb 'Search' 'users:search' %} + +{% endblock %} + + +{% block content %} +
+

Search Result:

{{qtd}} items found +
+
+
+

+ Links +

+
+ +
+
+
+
+
+

+ File +

+
+
+
+ {% if file_list %} + {% for file in file_list %} +
  • {{ file.file_type.icon }} {{ file.name }}
  • + {% endfor%} + {% else %} + {% trans 'No results found' %} + {% endif %} + +
    + +
    +
    + + +
    +
    +
    + +
    +
    +
    +

    + Forum +

    +
    +
    +
    + {% if forum_list %} + {% for forum in forum_list %} +
  • {{ forum }}
  • + {% endfor %} + {% else %} + + {% trans 'No results found' %} + + {% endif %} +
    + +
    +
    +
    +
    +
    +
    +

    + Exam +

    +
    +
    +
    + {% if exam_list %} + + {% else %} + {% trans 'No results found' %} + {% endif %} +
    + +
    +
    +
    +
    +
    +
    +

    + Poll +

    +
    +
    +
    + {% if poll_list %} + {% for poll in poll_list %} +
  • {% trans 'poll' %} {{ poll.name }}
  • + {% endfor %} + {% else %} + {% trans 'No results found' %} + {% endif %} + +
    +
    +
    +
    +
    + + + + + +{% endblock %} -- libgit2 0.21.2