[Refactor] Create a base settings page

This will make it easier to add new settings pages for e.g. privacy settings, applications,
etc. later.
This commit is contained in:
Gergely Polonkai 2018-07-11 09:36:46 +02:00
parent 7b935afdad
commit 1a69928241
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,10 @@
{% extends 'base.html' %}
{% block content %}
<nav>
<ul>
<li><a href="{{ url_for('edit_profile') }}">{% trans %}Edit profile{% endtrans %}</a></li>
<li><a href="{{ url_for('settings') }}">{% trans %}Settings{% endtrans %}</a></li>
</ul>
</nav>
{% endblock %}

View File

@ -1,6 +1,8 @@
{% extends 'base.html' %} {% extends 'settings-base.html' %}
{% block content %} {% block content %}
{{ super() }}
<h2>{% trans %}Settings{% endtrans %}</h2>
<form method="post"> <form method="post">
{{ form.hidden_tag() }} {{ form.hidden_tag() }}