Browse Source

[fix] replace the png icons by ico's, minor chnage in the html

pw3t 11 years ago
parent
commit
380b440a55

+ 0 - 6
searx/engines/mediawiki.py

@@ -18,9 +18,3 @@ def response(resp):
     return [{'url': url + 'wiki/' + quote(result['title'].replace(' ', '_').encode('utf-8')),
         'title': result['title']} for result in res[:int(number_of_results)]]
 
-    if not len(res):
-        return results
-    for result in res[:int(number_of_results)]:
-        results.append({'url': url + 'wiki/' + quote(result['title'].replace(' ', '_').encode('utf-8')), 'title': result['title'], 'favicon':'wikipedia'})
-    return results
-

+ 0 - 7
searx/static/css/style.css

@@ -151,13 +151,6 @@ tr:hover td { background: #DDDDDD; }
 
 #result_count { font-size: 0.8em; margin: 2px 0 2px 0; padding: 0 }
 
-#fr { padding: 2px 6px;
-display: inline-block; 
-background: #ECF0F1; 
-border-radius: 4px; 
-border: 1px solid #3498DB;; 
-width:55em;}
-
 #suggestions { position: absolute; left: 54em; width: 12em; margin: 0 2px 5px 5px; padding: 0 2px 2px 2px; }
 #suggestions span { display: block; font-size: 0.8em; margin: 0 2px 10px 2px; padding: 0; }
 #suggestions form { display: block; }

+ 0 - 10
searx/templates/result_templates/featured_results.html

@@ -1,10 +0,0 @@
-<div id="fr"> 
-    {% for result in featured_results %}
-
-        {% if result['template'] %}
-            {% include 'result_templates/'+result['template'] %}
-        {% else %}
-            {% include 'result_templates/default.html' %}
-        {% endif %}
-    {% endfor %}
-</div>

+ 0 - 3
searx/templates/results.html

@@ -14,9 +14,6 @@
     <div id ="result_count">
         Number of results: {{ number_of_results }}
     </div>
-    {% if featured_results  %}
-	{% include 'result_templates/featured_results.html' %}
-    {% endif %}
 
     {% for result in results %}
         {% if result['template'] %}

+ 0 - 3
searx/webapp.py

@@ -144,9 +144,6 @@ def index():
         for engine in result['engines']:
             if engine in ['wikipedia', 'youtube', 'vimeo', 'soundcloud', 'twitter', 'stackoverflow', 'github']:
                 result['favicon'] = engine
-            if engine in ['wikipedia', 'ddg definitions']:
-                featured_results.append(result)
-                results.remove(result)
 
     if request_data.get('format') == 'json':
         return Response(json.dumps({'query': query, 'results': results}), mimetype='application/json')