File indexing completed on 2024-05-12 03:53:40

0001 {% extends "base.html" %}
0002 
0003 {% if fwinfo %}
0004     {% set type = "library" %}
0005 {% elif group %}
0006     {% set type = "group" %}
0007 {% elif product_list %} {# global search page #}
0008     {% set type = "global" %}
0009 {% endif %}
0010 
0011 {% block page_title %}{{ title }} - Search results{% endblock %}
0012 
0013 {% block footer %}
0014   <script type="text/javascript" src="{{resources}}/js/search.js"></script>
0015   <script>
0016   $( document ).ready( function() {
0017     render_search("{{ type }}")
0018 });
0019   </script>
0020 {% endblock %}
0021 
0022 {% block title %}
0023     {% if type == "library" %}
0024         {{ fwinfo.fancyname }}
0025     {% elif type == "group" %}
0026         {{ group.fancyname }}
0027     {% elif type == "global" %}
0028         {{ title }}
0029     {% endif %}
0030 {% endblock %}
0031 
0032 {% block content %}
0033             <h2 id="search-title"><a name="content"></a>Search results:</h2>
0034 
0035             <div id="results" class="contents">
0036             <div class="loader"></div>
0037             </div>
0038 
0039 {% endblock %}
0040 
0041 {% block sidebar %}
0042     {% if type == "library" %}
0043         {% include "library-sidebar.html" %}
0044     {% elif type == "group" %}
0045         {% include "subgroup-sidebar.html" %}
0046     {% elif type == "global" %}
0047         {% include "frontpage-sidebar.html" %}
0048     {% endif %}
0049 {% endblock %}