[enh] oscar template: using table instead of container-fluid to show cookies

pull/1/head
Thomas Pointhuber 9 years ago
parent 0978f10887
commit a8b75ca47b

@ -0,0 +1,5 @@
{% from 'oscar/macros.html' import icon %}
<div class="alert alert-info fade in" role="alert">
<strong class="lead">{{ icon('info-sign') }} {{ _('Information!') }}</strong>
{{ _('currently, there are no cookies defined.') }}
</div>

@ -213,21 +213,23 @@
{{ _('This is the list of cookies and their values searx is storing on your computer.') }}<br /> {{ _('This is the list of cookies and their values searx is storing on your computer.') }}<br />
{{ _('With that list, you can assess searx transparency.') }}<br /> {{ _('With that list, you can assess searx transparency.') }}<br />
</p> </p>
<div class="container-fluid"> {% if cookies %}
<fieldset> <table class="table table-striped">
<div class="row"> <tr>
<div class="col-xs-6 col-sm-4 col-md-4 text-muted"><label>{{ _('Cookie name') }}</label></div> <th class="text-muted" style="padding-right:40px;">{{ _('Cookie name') }}</th>
<div class="col-xs-6 col-sm-4 col-md-4 text-muted"><label>{{ _('Value') }}</label></div> <th class="text-muted">{{ _('Value') }}</th>
</div> </tr>
{% for cookie in cookies %} {% for cookie in cookies %}
<div class="row"> <tr>
<div class="col-xs-6 col-sm-4 col-md-4 text-muted">{{ cookie }}</div> <td class="text-muted" style="padding-right:40px;">{{ cookie }}</td>
<div class="col-xs-6 col-sm-4 col-md-4 text-muted">{{ cookies[cookie] }}</div> <td class="text-muted">{{ cookies[cookie] }}</td>
</div> </tr>
{% endfor %} {% endfor %}
</fieldset> </table>
</div> {% else %}
{% include 'oscar/messages/no_cookies.html' %}
{% endif %}
</div> </div>
</div> </div>
<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.') }} <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.') }}

Loading…
Cancel
Save