add sensitive filter settings #17

This commit is contained in:
ghost 2023-10-09 16:53:08 +03:00
parent 6effb4cad2
commit b1679f3f65
7 changed files with 88 additions and 8 deletions

View file

@ -85,6 +85,20 @@
{% for i, locale in user.locales %}{% if i > 0 %},{% endif %} {{ locale|locale_name(locale)|u.title }}{% endfor %}
</td>
</tr>
<tr>
<td>{{ 'Theme'|trans }}</td>
<td>{{ user.theme }}</td>
</tr>
<tr>
<td>{{ 'Sensitive filter'|trans }}</td>
<td>
{% if user.sensitive %}
{{ 'yes'|trans }}
{% else %}
{{ 'no'|trans }}
{% endif %}
</td>
</tr>
</tbody>
</table>
</div>

View file

@ -85,7 +85,9 @@
</td>
</tr>
<tr>
<td>{{ 'Content filter'|trans }}</td>
<td>
{{ 'Content language' | trans }}
</td>
<td>
{% for locale in locales %}
<div class="padding-y-4-px">
@ -102,7 +104,9 @@
</td>
</tr>
<tr>
<td class="padding-t-16-px">{{ 'Theme'|trans }}</td>
<td class="padding-t-16-px">
{{ 'Theme' | trans }}
</td>
<td class="padding-t-16-px">
<select name="theme">
{% for theme in themes %}
@ -119,10 +123,24 @@
</select>
</td>
</tr>
<tr>
<td class="padding-y-8-px">
{{ 'Sensitive filter'|trans }}
</td>
<td>
<div class="padding-y-8-px">
{% if user.sensitive %}
<input name="sensitive" type="checkbox" value="true" checked="checked" />
{% else %}
<input name="sensitive" type="checkbox" value="true" />
{% endif %}
</div>
</td>
</tr>
</tbody>
</table>
<div class="text-right">
<input class="button-green" type="submit" value="{{'Save'|trans }}" />
<input class="button-green" type="submit" value="{{ 'Save' | trans }}" />
</div>
</form>
</div>