commit: 00e5262834801a524b916ad06e515a3b929cfdea
parent: cd3a52e18965a3077b4fad86f327f772e02b5a6a
Author: Adam Tauber <asciimoo@gmail.com>
Date: Mon, 8 Sep 2014 00:52:15 +0200
[enh] archive.org link added to results
Diffstat:
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/searx/static/default/css/style.css b/searx/static/default/css/style.css
@@ -38,9 +38,10 @@ a{text-decoration:none;color:#1a11be}a:visited{color:#8e44ad}
.result{margin:19px 0 18px 0;padding:0;clear:both}
.result_title{margin-bottom:0}.result_title a{color:#2980b9;font-weight:normal;font-size:1.1em}.result_title a:hover{text-decoration:underline}
.result_title a:visited{color:#8e44ad}
+.cache_link{font-size:10px !important}
.result h3{font-size:1em;word-wrap:break-word;margin:5px 0 1px 0;padding:0}
.result .content{font-size:.8em;margin:0;padding:0;max-width:54em;word-wrap:break-word;line-height:1.24}
-.result .url{font-size:.8em;margin:3px 0 0 0;padding:0;max-width:54em;word-wrap:break-word;color:#c0392b}
+.result .url{font-size:.8em;margin:0 0 3px 0;padding:0;max-width:54em;word-wrap:break-word;color:#c0392b}
.result .published_date{font-size:.8em;color:#888;margin:5px 20px}
.engines{color:#888}
.small_font{font-size:.8em}
diff --git a/searx/static/default/less/style.less b/searx/static/default/less/style.less
@@ -216,6 +216,10 @@ a {
}
}
+.cache_link {
+ font-size: 10px !important;
+}
+
.result {
h3 {
font-size: 1em;
@@ -235,7 +239,7 @@ a {
.url {
font-size: 0.8em;
- margin: 3px 0 0 0;
+ margin: 0 0 3px 0;
padding: 0;
max-width: 54em;
word-wrap:break-word;
diff --git a/searx/templates/default/result_templates/default.html b/searx/templates/default/result_templates/default.html
@@ -6,8 +6,8 @@
<div>
<h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
+ <p class="url">{{ result.pretty_url }} <a class="cache_link" href="https://web.archive.org/web/{{ result.url }}">cached</a></p>
{% 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>