michal/tit
Browse tree · Show commit · Download archive
Blob: templates/account-page.html
{% extends "base.html" %}
{% block title %}Account · tit{% endblock %}
{% block content %}
<h1>Account</h1>
<dl>
<dt>Username</dt>
<dd>{{ username }}</dd>
<dt>Administrator</dt>
<dd>{% if administrator %}Yes{% else %}No{% endif %}</dd>
</dl>
<h2>Create repository</h2>
<form action="/account/repositories" method="post">
<input type="hidden" name="csrf" value="{{ csrf }}">
<p>
<label for="repository-name">Name</label>
<input id="repository-name" name="name" required maxlength="100" pattern="([a-z0-9]|[a-z0-9][a-z0-9._-]*[a-z0-9])">
</p>
<button type="submit">Create repository</button>
</form>
<h2>Feeds</h2>
<p><a href="/feeds">Manage private feed tokens</a></p>
<h2>Sessions</h2>
<form action="/logout" method="post">
<input type="hidden" name="csrf" value="{{ csrf }}">
<button type="submit">Log out all sessions</button>
</form>
{% endblock %}