diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2016-06-26 01:57:43 +0200 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2016-06-26 01:57:43 +0200 |
| commit | f496dc353d336ffe11dde161963d72366f0eee16 (patch) | |
| tree | 2738503a83af512c5a2612ae2ac5070fe7988f32 /searx/templates/oscar/macros.html | |
| parent | 237d251d14e50d937805fcf030c4fbdb9d3918c9 (diff) | |
[enh] oscar theme redesign added
The original code made by @logico-dev (#559)
Diffstat (limited to 'searx/templates/oscar/macros.html')
| -rw-r--r-- | searx/templates/oscar/macros.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index cf49ce81a..8cb44eb2d 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -17,7 +17,6 @@ <!-- Draw result sub header -->
{% macro result_sub_header(result) -%}
{% if result.publishedDate %}<time class="text-muted" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif %}
- <small><a class="text-info" href="https://web.archive.org/web/{{ result.url }}" rel="noreferrer">{{ icon('link') }} {{ _('cached') }}</a></small>
{% if result.magnetlink %}<small> • <a href="{{ result.magnetlink }}" class="magnetlink">{{ icon('magnet') }} {{ _('magnet link') }}</a></small>{% endif %}
{% if result.torrentfile %}<small> • <a href="{{ result.torrentfile }}" class="torrentfile" rel="noreferrer">{{ icon('download-alt') }} {{ _('torrent file') }}</a></small>{% endif %}
{%- endmacro %}
@@ -29,15 +28,20 @@ {% for engine in result.engines %}
<span class="label label-default">{{ engine }}</span>
{% endfor %}
+ <small><a class="text-info" href="https://web.archive.org/web/{{ result.url }}" rel="noreferrer">{{ icon('link') }} {{ _('cached') }}</a></small>
</div>
- <p class="text-muted">{{ result.pretty_url }}</p>
+ <span class="text-muted"><small>{{ result.pretty_url }}</small></span>
{%- endmacro %}
<!-- Draw result footer -->
{% macro result_footer_rtl(result) -%}
<div class="clearfix"></div>
- <span class="label label-default pull-left">{{ result.engine }}</span>
- <p class="text-muted">{{ result.pretty_url }}‎</p>
+ {% for engine in result.engines %}
+ <span class="label label-default">{{ engine }}</span>
+ {% endfor %}
+ <small><a class="text-info" href="https://web.archive.org/web/{{ result.url }}" rel="noreferrer">{{ icon('link') }} {{ _('cached') }}</a></small>
+</div>
+ <span class="text-muted"><small>{{ result.pretty_url }}</small></span>
{%- endmacro %}
{% macro preferences_item_header(info, label, rtl) -%}
|