Commit ed8574cccaa4aa1162744f591cd8706093862c8a
1 parent
449a023b
Exists in
master
and in
39 other branches
Minor code refactoring on search template
Showing
1 changed file
with
12 additions
and
12 deletions
Show diff stats
src/templates/search/search.html
@@ -21,32 +21,32 @@ | @@ -21,32 +21,32 @@ | ||
21 | 21 | ||
22 | <h4>{% trans "Types" %}</h4> | 22 | <h4>{% trans "Types" %}</h4> |
23 | 23 | ||
24 | - <ul class="none indent unstyled-list"> | ||
25 | - <li {% ifequal type "wiki" %} title="{% trans "Remove filter" %}" {% endifequal %}> | 24 | + <ul class="unstyled-list"> |
25 | + <li> | ||
26 | <span class="glyphicon glyphicon-file"></span> | 26 | <span class="glyphicon glyphicon-file"></span> |
27 | - <a href="{% ifnotequal type "wiki" %} {% append_to_get type='wiki' %} {% else %} {% append_to_get type="" %} {% endifnotequal %}">{% trans "Wiki" %}</a> | 27 | + <a href="{% append_to_get type='wiki' %}">{% trans "Wiki" %}</a> |
28 | </li> | 28 | </li> |
29 | - <li {% ifequal type "thread" %} title="{% trans "Remove filter" %}" {% endifequal %}> | 29 | + <li> |
30 | <span class="glyphicon glyphicon-envelope"></span> | 30 | <span class="glyphicon glyphicon-envelope"></span> |
31 | - <a href="{% ifnotequal type "thread" %} {% append_to_get type='thread' %} {% else %} {% append_to_get type="" %} {% endifnotequal %}">{% trans "Discussion" %}</a> | 31 | + <a href="{% append_to_get type='thread' %}">{% trans "Discussion" %}</a> |
32 | </li> | 32 | </li> |
33 | - <li {% ifequal type "ticket" %} title="{% trans "Remove filter" %}" {% endifequal %}> | 33 | + <li> |
34 | <span class="glyphicon glyphicon-tag"></span> | 34 | <span class="glyphicon glyphicon-tag"></span> |
35 | - <a href="{% ifnotequal type "ticket" %} {% append_to_get type='ticket' %} {% else %} {% append_to_get type="" %} {% endifnotequal %}">{% trans "Ticket" %}</a> | 35 | + <a href="{% append_to_get type='ticket' %}">{% trans "Ticket" %}</a> |
36 | </li> | 36 | </li> |
37 | - <li {% ifequal type "changeset" %} title="{% trans "Remove filter" %}" {% endifequal %}> | 37 | + <li> |
38 | <span class="glyphicon glyphicon-align-right"></span> | 38 | <span class="glyphicon glyphicon-align-right"></span> |
39 | - <a href="{% ifnotequal type "changeset" %} {% append_to_get type='changeset' %} {% else %} {% append_to_get type="" %} {% endifnotequal %}">{% trans "Changeset" %}</a> | 39 | + <a href="{% append_to_get type='changeset' %}">{% trans "Changeset" %}</a> |
40 | </li> | 40 | </li> |
41 | - <li {% ifequal type "user" %} title="{% trans "Remove filter" %}" {% endifequal %}> | 41 | + <li> |
42 | <span class="glyphicon glyphicon-user"></span> | 42 | <span class="glyphicon glyphicon-user"></span> |
43 | - <a href="{% ifnotequal type "user" %} {% append_to_get type='user' %} {% else %} {% append_to_get type="" %} {% endifnotequal %}">{% trans "User" %}</a> | 43 | + <a href="{% append_to_get type='user' %}">{% trans "User" %}</a> |
44 | </li> | 44 | </li> |
45 | </ul> | 45 | </ul> |
46 | </div> | 46 | </div> |
47 | 47 | ||
48 | <div class="col-lg-10"> | 48 | <div class="col-lg-10"> |
49 | - <ul class="none indent list-unstyled"> | 49 | + <ul class="list-unstyled"> |
50 | {% for result in page.object_list %} | 50 | {% for result in page.object_list %} |
51 | {% include "search/preview-search.html" %} | 51 | {% include "search/preview-search.html" %} |
52 | {% empty %} | 52 | {% empty %} |