implement theme settings #17

This commit is contained in:
ghost 2023-10-09 16:33:07 +03:00
parent 0ab282e1c4
commit 5a940541ee
8 changed files with 55 additions and 3 deletions

View file

@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<title>{% block title %}{{ name }}{% endblock %}</title>
{% block stylesheets %}
<link href="{{ asset('asset/default/css/framework.css') }}?{{ version }}" rel="stylesheet" />
<link href="{{ asset('asset/default/css/common.css') }}?{{ version }}" rel="stylesheet" />
<link href="{{ asset('asset/' ~ theme ~ '/css/framework.css') }}?{{ version }}" rel="stylesheet" />
<link href="{{ asset('asset/' ~ theme ~ '/css/common.css') }}?{{ version }}" rel="stylesheet" />
{% endblock %}
</head>
<body>

View file

@ -101,6 +101,24 @@
{% endfor %}
</td>
</tr>
<tr>
<td class="padding-t-16-px">{{ 'Theme'|trans }}</td>
<td class="padding-t-16-px">
<select name="theme">
{% for theme in themes %}
{% if theme == user.theme %}
<option value="{{ theme }}" selected="selected">
{{ theme }}
</option>
{% else %}
<option value="{{ theme }}">
{{ theme }}
</option>
{% endif %}
{% endfor %}
</select>
</td>
</tr>
</tbody>
</table>
<div class="text-right">