From 2fc1de54da6c81ab99240b2f69319dfc62d6dd2e Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Fri, 16 Jan 2015 00:56:54 +0100 Subject: Lots of courgette modification --- searx/templates/courgette/result_templates/code.html | 12 ++++++------ .../courgette/result_templates/default.html | 18 +++++++++--------- .../templates/courgette/result_templates/images.html | 4 ++-- searx/templates/courgette/result_templates/map.html | 20 ++++++++++---------- .../courgette/result_templates/torrent.html | 14 ++++++++++---- .../templates/courgette/result_templates/videos.html | 16 ++++++++-------- 6 files changed, 45 insertions(+), 39 deletions(-) (limited to 'searx/templates/courgette/result_templates') diff --git a/searx/templates/courgette/result_templates/code.html b/searx/templates/courgette/result_templates/code.html index 616b7ea62..444366b85 100644 --- a/searx/templates/courgette/result_templates/code.html +++ b/searx/templates/courgette/result_templates/code.html @@ -1,9 +1,9 @@
-

{% if result['favicon'] %}{{result['favicon']}}{% endif %}{{ result.title|safe }}

-

{{ result.pretty_url }} cached

- {% if result.publishedDate %}

{{ result.publishedDate }}

{% endif %} +

{% if result['favicon'] %}{{result['favicon']}}{% endif %}{{ result.title|safe }}

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

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

- {% if result.repository %}

{{ result.repository }}

{% endif %} - + {% if result.repository %}

{{ result.repository }}

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

{{ result.pretty_url }}

+ \ No newline at end of file diff --git a/searx/templates/courgette/result_templates/default.html b/searx/templates/courgette/result_templates/default.html index 710b0a8e7..efd9778dc 100644 --- a/searx/templates/courgette/result_templates/default.html +++ b/searx/templates/courgette/result_templates/default.html @@ -1,13 +1,13 @@
- {% if "icon_"~result.engine~".ico" in favicons %} + {% if "icon_"~result.engine~".ico" in favicons %} {{result.engine}} - {% endif %} + {% endif %} -
-

{{ result.title|safe }}

- {% if result.publishedDate %}

{{ result.publishedDate }}

{% endif %} -

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

-

{{ result.pretty_url }}

-
-
+
+

{{ result.title|safe }}

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

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

+

{{ result.pretty_url }}

+
+ \ No newline at end of file diff --git a/searx/templates/courgette/result_templates/images.html b/searx/templates/courgette/result_templates/images.html index ebda5380b..0ff887101 100644 --- a/searx/templates/courgette/result_templates/images.html +++ b/searx/templates/courgette/result_templates/images.html @@ -1,6 +1,6 @@

{{ result.title|striptags }} - original context + {{ _('original context') }}

-
+ \ 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 4919954e0..efd9778dc 100644 --- a/searx/templates/courgette/result_templates/map.html +++ b/searx/templates/courgette/result_templates/map.html @@ -1,13 +1,13 @@
- {% if "icon_"~result.engine~".ico" in favicons %} - {{result.engine}} - {% endif %} + {% if "icon_"~result.engine~".ico" in favicons %} + {{result.engine}} + {% endif %} -
-

{{ result.title|safe }}

- {% if result.publishedDate %}

{{ result.publishedDate }}

{% endif %} -

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

-

{{ result.pretty_url }}

-
-
+
+

{{ result.title|safe }}

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

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

+

{{ 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 6c62793a5..607c1de02 100644 --- a/searx/templates/courgette/result_templates/torrent.html +++ b/searx/templates/courgette/result_templates/torrent.html @@ -1,7 +1,13 @@
+ {% if "icon_"~result.engine~".ico" in favicons %} + {{result.engine}} + {% endif %}

{{ result.title|safe }}

- {% if result.content %}

{{ result.content|safe }}

{% endif %} -

Seed: {{ result.seed }}, Leech: {{ result.leech }}

-

magnet link

+ {% if result.content %}{{ result.content|safe }}
{% endif %} + {{ _('Seeder') }} : {{ result.seed }}, {{ _('Leecher') }} : {{ result.leech }}
+ + {% if result.magnetlink %}{{ _('magnet link') }}{% endif %} + {% if result.torrentfile %}{{ _('torrent file') }}{% endif %} +

{{ 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 bb711caab..ebb7af4e4 100644 --- a/searx/templates/courgette/result_templates/videos.html +++ b/searx/templates/courgette/result_templates/videos.html @@ -1,10 +1,10 @@
- {% if "icon_"~result.engine~".ico" in favicons %} - {{result.engine}} - {% endif %} + {% if "icon_"~result.engine~".ico" in favicons %} + {{result.engine}} + {% endif %} -

{{ result.title|safe }}

- {% if result.publishedDate %}

{{ result.publishedDate }}

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

{{ result.url }}

-
+

{{ result.title|safe }}

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

{{ result.pretty_url }}

+ \ No newline at end of file -- cgit v1.2.3