Commit 6645a9a3 authored by Hubert Denkmair's avatar Hubert Denkmair
Browse files

Merge branch 'branch/profile' into 'master'

profile styled

See merge request GPN18Programmierspiel/website!10
parents 81cda45f 42a68256
...@@ -63,7 +63,8 @@ div.content { ...@@ -63,7 +63,8 @@ div.content {
padding:10px; padding:10px;
} }
div.content > h2 { div.content > h2,
div.content > div.panel {
margin-left: 200px; margin-left: 200px;
} }
......
...@@ -2,11 +2,17 @@ ...@@ -2,11 +2,17 @@
{% load static %} {% load static %}
{% block content %} {% block content %}
<h1>Profile</h1> <div class="panel">
<h2>Profile</h2>
<h3>Password</h3> <h3>Password</h3>
<form method="GET" action="{% url "change_password" %}"><button type="submit">Change User Password</button></form> <form method="GET" action="{% url "change_password" %}">
<button type="submit" class="ui small positive button">Change User Password</button>
</form>
<h3>API Keys</h3> <h3>API Keys</h3>
<form method="GET" action="{% url "api_keys_list" %}"><button type="submit">Manage API Keys</button></form> <form method="GET" action="{% url "api_keys_list" %}">
<button type="submit" class="ui small positive button">Manage API Keys</button>
</form>
<h3>Viewer Key</h3> <h3>Viewer Key</h3>
Websocket Viewer Key: {{ profile.viewer_key }} Websocket Viewer Key: {{ profile.viewer_key }}
</div>
{% endblock %} {% endblock %}
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
--- <table><tr><td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.insert">insert</a></td> --- <table><tr><td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.insert">insert</a></td>
--- <td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.remove">remove</a></td> --- <td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.remove">remove</a></td>
--- <td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.sort">sort</a></td></tr></table> --- <td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.sort">sort</a></td></tr></table>
--- <h2>Globals</h2>
--- <p>Every snake can describe itself with the following attributes of the global variable <code>self</code>:</p> --- <p>Every snake can describe itself with the following attributes of the global variable <code>self</code>:</p>
--- <table> --- <table>
--- <thead> --- <thead>
......
...@@ -84,7 +84,6 @@ ...@@ -84,7 +84,6 @@
<table><tr><td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.insert">insert</a></td> <table><tr><td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.insert">insert</a></td>
<td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.remove">remove</a></td> <td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.remove">remove</a></td>
<td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.sort">sort</a></td></tr></table> <td><a href="https://www.lua.org/manual/5.3/manual.html#pdf-table.sort">sort</a></td></tr></table>
<h2>Globals</h2>
<p>Every snake can describe itself with the following attributes of the global variable <code>self</code>:</p> <p>Every snake can describe itself with the following attributes of the global variable <code>self</code>:</p>
<table> <table>
<thead> <thead>
......
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