From 75ac7fa38d6f4c6c26a17c539359ce6ca0fc3e38 Mon Sep 17 00:00:00 2001 From: Matheus Fernandes Date: Tue, 3 Nov 2015 16:52:37 -0200 Subject: [PATCH] Added new search template --- src/colab-spb-theme-plugin/colab_spb_theme/templates/search/search.html | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+), 0 deletions(-) create mode 100644 src/colab-spb-theme-plugin/colab_spb_theme/templates/search/search.html diff --git a/src/colab-spb-theme-plugin/colab_spb_theme/templates/search/search.html b/src/colab-spb-theme-plugin/colab_spb_theme/templates/search/search.html new file mode 100644 index 0000000..f9393a4 --- /dev/null +++ b/src/colab-spb-theme-plugin/colab_spb_theme/templates/search/search.html @@ -0,0 +1,128 @@ +{% extends "base.html" %} +{% load i18n highlight superarchives %} +{% load static from staticfiles %} + +{% block title %}{% trans 'search'|title %}{% endblock %} + +{% block head_js %} + +{% if use_language %} + +{% endif %} + + +{% endblock head_js %} + +{% block head_css %} + +{% endblock %} + +{% block main-content %} +
+
+
+

{% trans "Search" %}

+
+
+

+

+ {{ page.paginator.count }} {% trans "documents found" %} +

+
+
+ +
+ +
+ + +
+ +
+ {% for result in page.object_list %} + {% include "message-preview.html" %} + {% empty %} +
    +
  • + {% trans "No results for your search." %} + {% if request.GET.q %} +

    {% trans "You are searching for" %} {{ request.GET.q }}

    + {% endif %} +
  • +
+ {% endfor %} + + {% if page.has_other_pages %} +
+ +
+ {% endif %} +
+ +
+
+{% endblock main-content %} \ No newline at end of file -- libgit2 0.21.2