From 77ba28cf505e7f0cdde294e8ad10f9c07db43f6a Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Fri, 13 Feb 2015 01:03:18 +0100 Subject: Some RTL fixes - Pull the suggestions to the right in oscar - Add `‎` to a few places to print good url - Always LTR code display - Order pref label and info in pref for mobile view And add `sort` for ui languages and languages to find them more easily. --- searx/templates/courgette/preferences.html | 4 ++-- searx/templates/courgette/result_templates/code.html | 4 +++- searx/templates/courgette/result_templates/default.html | 2 +- searx/templates/courgette/result_templates/map.html | 2 +- searx/templates/courgette/result_templates/torrent.html | 2 +- searx/templates/courgette/result_templates/videos.html | 2 +- searx/templates/courgette/results.html | 2 +- 7 files changed, 10 insertions(+), 8 deletions(-) (limited to 'searx/templates/courgette') diff --git a/searx/templates/courgette/preferences.html b/searx/templates/courgette/preferences.html index efa0f65fa..2abfafb13 100644 --- a/searx/templates/courgette/preferences.html +++ b/searx/templates/courgette/preferences.html @@ -14,7 +14,7 @@

@@ -24,7 +24,7 @@ {{ _('Interface language') }}

diff --git a/searx/templates/courgette/result_templates/code.html b/searx/templates/courgette/result_templates/code.html index 6721bd0fe..382ce2a56 100644 --- a/searx/templates/courgette/result_templates/code.html +++ b/searx/templates/courgette/result_templates/code.html @@ -3,7 +3,9 @@ {% if result.publishedDate %}{{ result.publishedDate }}{% endif %}

{% if result.img_src %}{% endif %}{% if result.content %}{{ result.content|safe }}
{% endif %}

{% if result.repository %}

{{ result.repository }}

{% endif %} +
{{ result.codelines|code_highlighter(result.code_language)|safe }} +
-

{{ result.pretty_url }}

+

{{ result.pretty_url }}‎

diff --git a/searx/templates/courgette/result_templates/default.html b/searx/templates/courgette/result_templates/default.html index efd9778dc..f5f5acef7 100644 --- a/searx/templates/courgette/result_templates/default.html +++ b/searx/templates/courgette/result_templates/default.html @@ -8,6 +8,6 @@

{{ result.title|safe }}

{% if result.publishedDate %}{{ result.publishedDate }}{% endif %}

{% if result.content %}{{ result.content|safe }}
{% endif %}

-

{{ result.pretty_url }}

+

{{ result.pretty_url }}‎

\ No newline at end of file diff --git a/searx/templates/courgette/result_templates/map.html b/searx/templates/courgette/result_templates/map.html index efd9778dc..f5f5acef7 100644 --- a/searx/templates/courgette/result_templates/map.html +++ b/searx/templates/courgette/result_templates/map.html @@ -8,6 +8,6 @@

{{ result.title|safe }}

{% if result.publishedDate %}{{ result.publishedDate }}{% endif %}

{% if result.content %}{{ result.content|safe }}
{% endif %}

-

{{ result.pretty_url }}

+

{{ result.pretty_url }}‎

\ No newline at end of file diff --git a/searx/templates/courgette/result_templates/torrent.html b/searx/templates/courgette/result_templates/torrent.html index 607c1de02..b961eb09b 100644 --- a/searx/templates/courgette/result_templates/torrent.html +++ b/searx/templates/courgette/result_templates/torrent.html @@ -9,5 +9,5 @@ {% if result.magnetlink %}{{ _('magnet link') }}{% endif %} {% if result.torrentfile %}{{ _('torrent file') }}{% endif %} -

{{ result.pretty_url }}

+

{{ result.pretty_url }}‎

\ No newline at end of file diff --git a/searx/templates/courgette/result_templates/videos.html b/searx/templates/courgette/result_templates/videos.html index 891b69f28..4e0174ba6 100644 --- a/searx/templates/courgette/result_templates/videos.html +++ b/searx/templates/courgette/result_templates/videos.html @@ -6,5 +6,5 @@

{{ result.title|safe }}

{% if result.publishedDate %}{{ result.publishedDate }}
{% endif %} {{ result.title|striptags }} -

{{ result.pretty_url }}

+

{{ result.pretty_url }}‎

diff --git a/searx/templates/courgette/results.html b/searx/templates/courgette/results.html index 6d603fdee..619c99763 100644 --- a/searx/templates/courgette/results.html +++ b/searx/templates/courgette/results.html @@ -13,7 +13,7 @@
- {{ _('Download results') }} + {{ _('Download results') }}
{% for output_type in ('csv', 'json', 'rss') %}
-- cgit v1.2.3