Commit f28b506f61b95b8ad71271cb0710461ca1aec2a3

Authored by Luan
1 parent b68e6ce8

Minor fix on preview search layout

Showing 1 changed file with 6 additions and 13 deletions   Show diff stats
src/templates/search/preview-search.html
@@ -4,25 +4,18 @@ @@ -4,25 +4,18 @@
4 <li class="preview-message"> 4 <li class="preview-message">
5 <span class="glyphicon glyphicon-{{ result.icon_name }}" title="{{ result.type }}"></span> 5 <span class="glyphicon glyphicon-{{ result.icon_name }}" title="{{ result.type }}"></span>
6 6
7 -{% if result.mailinglist_url %}  
8 - <a href="{{ result.mailinglist_url }}">  
9 -{% else %}  
10 - <a href="{{ result.url }}" {% if result.description %}title="{{ result.description|escape }}"{% endif %}>  
11 -{% endif %}  
12 - {% if result.tag %}  
13 - <span class="label label-primary">{{ result.tag }}</span>  
14 - {% endif %}  
15 -{% if result.mailinglist_url %}  
16 - </a> 7 +{% if result.tag %}
  8 +<a href="{% firstof result.mailinglist_url result.url %}">
  9 + <span class="label label-primary">{{ result.tag }}</span>
  10 +</a>
17 {% endif %} 11 {% endif %}
18 12
19 - {% if result.title %} 13 +{% if result.title %}
  14 + <a href="{{ result.url }}" {% if result.description %}title="{{ result.description|escape|truncatechars:200 }}"{% endif %}>
20 <span class="subject"> 15 <span class="subject">
21 <!-- a striptags filter was raising an error here because using with highlight --> 16 <!-- a striptags filter was raising an error here because using with highlight -->
22 {% highlight result.title with query max_length "1000" %} 17 {% highlight result.title with query max_length "1000" %}
23 </span> 18 </span>
24 - {% endif %}  
25 -{% if not result.mailinglist_url %}  
26 </a> 19 </a>
27 {% endif %} 20 {% endif %}
28 21