| 1 |
{% extends "base.html" %} |
| 2 |
|
| 3 |
{% if fwinfo %} |
| 4 |
{% set type = "library" %} |
| 5 |
{% elif group %} |
| 6 |
{% set type = "group" %} |
| 7 |
{% elif product_list %} {# global search page #} |
| 8 |
{% set type = "global" %} |
| 9 |
{% endif %} |
| 10 |
|
| 11 |
{% block page_title %}{{ title }} - Search results{% endblock %} |
| 12 |
|
| 13 |
{% block footer %} |
| 14 |
<script type="text/javascript" src="{{resources}}/js/search.js"></script> |
| 15 |
<script> |
| 16 |
$( document ).ready( function() { |
| 17 |
render_search("{{ type }}") |
| 18 |
}); |
| 19 |
</script> |
| 20 |
{% endblock %} |
| 21 |
|
| 22 |
{% block title %} |
| 23 |
{% if type == "library" %} |
| 24 |
{{ fwinfo.fancyname }} |
| 25 |
{% elif type == "group" %} |
| 26 |
{{ group.fancyname }} |
| 27 |
{% elif type == "global" %} |
| 28 |
{{ title }} |
| 29 |
{% endif %} |
| 30 |
{% endblock %} |
| 31 |
|
| 32 |
{% block content %} |
| 33 |
<h2 id="search-title"><a name="content"></a>Search results:</h2> |
| 34 |
|
| 35 |
<div id="results" class="contents"> |
| 36 |
<div class="loader"></div> |
| 37 |
</div> |
| 38 |
|
| 39 |
{% endblock %} |
| 40 |
|
| 41 |
{% block sidebar %} |
| 42 |
{% if type == "library" %} |
| 43 |
{% include "library-sidebar.html" %} |
| 44 |
{% elif type == "group" %} |
| 45 |
{% include "subgroup-sidebar.html" %} |
| 46 |
{% elif type == "global" %} |
| 47 |
{% include "frontpage-sidebar.html" %} |
| 48 |
{% endif %} |
| 49 |
{% endblock %} |