on master help sign in
[enh] oscar template: using table instead of container-fluid to show cookies
commita8b75ca47b14b9df13017f7409367993afb3fb7c authorThomas Pointhuber <thomas.pointhuber@gmx.at> dateFri 5 Jun 2015, 09:07 (11 years ago) parent0978f10
2 files changed+19−12
searx/templates/oscar/messages/no_cookies.html+5 searx/templates/oscar/preferences.html+14−12
searx/templates/oscar/messages/no_cookies.htmlnew file+5
@@ -0,0 +1,5 @@
1+{% from 'oscar/macros.html' import icon %}
2+<div class="alert alert-info fade in" role="alert">
3+ <strong class="lead">{{ icon('info-sign') }} {{ _('Information!') }}</strong>
4+ {{ _('currently, there are no cookies defined.') }}
5+</div>
searx/templates/oscar/preferences.html+14−12
@@ -213,21 +213,23 @@
213213 {{ _('This is the list of cookies and their values searx is storing on your computer.') }}<br />
214214 {{ _('With that list, you can assess searx transparency.') }}<br />
215215 </p>
216− <div class="container-fluid">
217− <fieldset>
218− <div class="row">
219− <div class="col-xs-6 col-sm-4 col-md-4 text-muted"><label>{{ _('Cookie name') }}</label></div>
220− <div class="col-xs-6 col-sm-4 col-md-4 text-muted"><label>{{ _('Value') }}</label></div>
221− </div>
216+ {% if cookies %}
217+ <table class="table table-striped">
218+ <tr>
219+ <th class="text-muted" style="padding-right:40px;">{{ _('Cookie name') }}</th>
220+ <th class="text-muted">{{ _('Value') }}</th>
221+ </tr>
222222
223223 {% for cookie in cookies %}
224− <div class="row">
225− <div class="col-xs-6 col-sm-4 col-md-4 text-muted">{{ cookie }}</div>
226− <div class="col-xs-6 col-sm-4 col-md-4 text-muted">{{ cookies[cookie] }}</div>
227− </div>
224+ <tr>
225+ <td class="text-muted" style="padding-right:40px;">{{ cookie }}</td>
226+ <td class="text-muted">{{ cookies[cookie] }}</td>
227+ </tr>
228228 {% endfor %}
229− </fieldset>
230− </div>
229+ </table>
230+ {% else %}
231+ {% include 'oscar/messages/no_cookies.html' %}
232+ {% endif %}
231233 </div>
232234 </div>
233235 <p class="text-muted" style="margin:20px 0;">{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}