diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2014-08-18 11:37:57 +0200 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2014-08-18 11:37:57 +0200 |
| commit | d1d55f2ca41fbaf10a66bfc66d69e0fccf673413 (patch) | |
| tree | 6ef0e55b147f4b82f7970ea39e890523c23aadf5 /searx/templates/courgette/result_templates | |
| parent | ce719ac50ca79cc423046ef7a32b8792a24dfe0b (diff) | |
| parent | 195ff7522eea6cfbc9deb26826d8cfc424cac397 (diff) | |
Merge pull request #82 from courgette/master
New theme courgette
Diffstat (limited to 'searx/templates/courgette/result_templates')
4 files changed, 38 insertions, 0 deletions
diff --git a/searx/templates/courgette/result_templates/default.html b/searx/templates/courgette/result_templates/default.html new file mode 100644 index 000000000..734f9066c --- /dev/null +++ b/searx/templates/courgette/result_templates/default.html @@ -0,0 +1,13 @@ +<div class="result {{ result.class }}"> + + {% if result['favicon'] %} + <img width="14" height="14" class="favicon" src="static/{{theme}}/img/icon_{{result['favicon']}}.ico" /> + {% endif %} + + <div> + <h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3> + {% if result.publishedDate %}<p class="published_date">{{ result.publishedDate }}</p>{% endif %} + <p class="content">{% if result.content %}{{ result.content|safe }}<br />{% endif %}</p> + <p class="url">{{ result.pretty_url }}</p> + </div> +</div> diff --git a/searx/templates/courgette/result_templates/images.html b/searx/templates/courgette/result_templates/images.html new file mode 100644 index 000000000..1f15ff2bb --- /dev/null +++ b/searx/templates/courgette/result_templates/images.html @@ -0,0 +1,6 @@ +<div class="image_result"> + <p> + <a href="{{ result.img_src }}"><img src="{{ result.img_src }}" title={{ result.title }}/></a> + <span class="url"><a href="{{ result.url }}" class="small_font">original context</a></span> + </p> +</div> diff --git a/searx/templates/courgette/result_templates/torrent.html b/searx/templates/courgette/result_templates/torrent.html new file mode 100644 index 000000000..6c62793a5 --- /dev/null +++ b/searx/templates/courgette/result_templates/torrent.html @@ -0,0 +1,7 @@ +<div class="result torrent_result"> + <h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3> + {% if result.content %}<p class="content">{{ result.content|safe }}</p>{% endif %} + <p class="stats">Seed: {{ result.seed }}, Leech: {{ result.leech }}</p> + <p><a href="{{ result.magnetlink }}" class="magnetlink">magnet link</a></p> + <p class="url">{{ result.pretty_url }}</p> +</div> diff --git a/searx/templates/courgette/result_templates/videos.html b/searx/templates/courgette/result_templates/videos.html new file mode 100644 index 000000000..8ceb0b180 --- /dev/null +++ b/searx/templates/courgette/result_templates/videos.html @@ -0,0 +1,12 @@ +<div class="result"> + {% if result['favicon'] %} + <img width="14" height="14" class="favicon" src="static/{{theme}}/img/icon_{{result['favicon']}}.ico" /> + {% endif %} + + <p> + <h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3> + {% if result.publishedDate %}<p class="published_date">{{ result.publishedDate }}</p>{% endif %} + <a href="{{ result.url }}"><img width="400px" src="{{ result.thumbnail }}" title={{ result.title }} alt=" {{ result.title }}"/></a> + <p class="url">{{ result.url }}</p> + </p> +</div> |