@@ -1,3 +1,28 @@
1+<!-- Draw glyphicon icon from bootstrap-theme -->
1{% macro icon(action) -%}
2{% macro icon(action) -%}
2 <span class="glyphicon glyphicon-{{ action }}"></span>
3 <span class="glyphicon glyphicon-{{ action }}"></span>
3{%- endmacro %}
4{%- endmacro %}
7+<!-- TODO: using url_for methode -->
8+{% macro draw_favicon(favicon) -%}
9+ <img width="32" height="32" class="favicon" src="static/oscar/img/icons/{{ favicon }}.png" alt="{{ favicon }}" />
12+<!-- Draw result header -->
13+{% macro result_header(result) -%}
14+ <h4 class="result_header">{% if result.favicon %}{{ draw_favicon(result.favicon) }} {% endif %}<a href="{{ result.url }}">{{ result.title|safe }}</a></h4>
17+<!-- Draw result sub header -->
18+{% macro result_sub_header(result) -%}
19+ {% if result.publishedDate %}<time class="text-muted" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif %}
20+ <small><a class="text-info" href="https://web.archive.org/web/{{ result.url }}">{{ icon('link') }} {{ _('cached') }}</a></small>
23+<!-- Draw result footer -->
24+{% macro result_footer(result) -%}
25+ <div class="clearfix"></div>
26+ <span class="label label-default pull-right">{{ result.engine }}</span>
27+ <p class="text-muted">{{ result.pretty_url }}</p>