From 23edfaddef66dcfad8236ba49dfcd2843d160a8e Mon Sep 17 00:00:00 2001 From: Anuja Date: Thu, 22 Mar 2012 12:40:58 +0530 Subject: Added template nodes_search.html for nodes search. --- gstudio/templates/gstudio/nodes_search.html | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 gstudio/templates/gstudio/nodes_search.html (limited to 'gstudio/templates/gstudio/nodes_search.html') diff --git a/gstudio/templates/gstudio/nodes_search.html b/gstudio/templates/gstudio/nodes_search.html new file mode 100644 index 00000000..7fbc53db --- /dev/null +++ b/gstudio/templates/gstudio/nodes_search.html @@ -0,0 +1,49 @@ +{% extends "gstudio/nodetype_list.html" %} +{% load i18n gstudio_tags %} + +{% block title %}{% trans "Search results for" %} {% if pattern %}'{{ pattern }}'{% endif %}{% if page_obj %}{% ifnotequal page_obj.number 1 %} | {% trans "Page" %} {{ page_obj.number }}{% endifnotequal %}{% endif %}{% endblock %} + +{% block meta-description %}{% trans "Search results for" %} {% if pattern %}'{{ pattern }}'{% endif %}{% if page_obj %}{% ifnotequal page_obj.number 1 %} {% trans "page" %} {{ page_obj.number }}{% endifnotequal %}{% endif %}{% endblock %} + +{% block link %} + {{ block.super }} + +{% endblock %} + +{% block content %} +

{% trans "Search results for" %} {% if pattern %}'{{ pattern }}'{% endif %}

+ +{% if error %} +

{{ error }}

+{% endif %} + +{% if object_list %} +

+ {% blocktrans count paginator.count as nodetype_count %}{{ nodetype_count }} nodetype found{% plural %}{{ nodetype_count }} nodetypes found{% endblocktrans %} +

+{% endif %} + +{% for object in object_list %} + {% with object.html_content|truncatewords_html:100|safe as object_content %} + {% include "gstudio/_nodetype_detail.html" %} + {% endwith %} +{% empty %} +

{% trans "Nothing found." %}

+{% endfor %} + + + +{% if is_paginated %} + {% gstudio_pagination page_obj %} +{% endif %} +{% endblock %} -- cgit v1.2.3-70-g09d2