Explorar el Código

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

pw3t hace 11 años
padre
commit
380b440a55

+ 0
- 6
searx/engines/mediawiki.py Ver fichero

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

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

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

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

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

+ 0
- 3
searx/templates/results.html Ver fichero

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

+ 0
- 3
searx/webapp.py Ver fichero

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