Commit 73e5db11 authored by Your Name's avatar Your Name

Better user interface

parent 584f3c29
...@@ -400,7 +400,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. ...@@ -400,7 +400,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
{% if request.session.logged_in %} {% if request.session.logged_in %}
<div class="header-actions"> <div class="header-actions">
<a href="{{ url_for(request, '/dashboard/license') }}" class="btn btn-secondary">License</a> <a href="{{ url_for(request, '/dashboard/license') }}" class="btn btn-secondary">License</a>
{% if request.session.role == 'admin' %}
<button onclick="restartServer()" class="btn btn-warning">Restart Server</button> <button onclick="restartServer()" class="btn btn-warning">Restart Server</button>
{% endif %}
<a href="{{ url_for(request, '/dashboard/logout') }}" class="btn btn-secondary">Logout</a> <a href="{{ url_for(request, '/dashboard/logout') }}" class="btn btn-secondary">Logout</a>
</div> </div>
{% endif %} {% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment