2022-01-05 13:42:24 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block main %}
|
2022-01-07 16:55:40 +01:00
|
|
|
<div id="buttons">
|
2022-01-05 15:10:18 +01:00
|
|
|
{% if not current_user.is_authenticated %}
|
2022-01-05 13:42:24 +01:00
|
|
|
<div class="signin">
|
|
|
|
<a href="/login">
|
|
|
|
<input type="button" name="button" value="Sign in"></input>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="signin">
|
|
|
|
<a href="/register">
|
|
|
|
<input type="button" name="button" value="Register"></input>
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-01-05 15:10:18 +01:00
|
|
|
{% else %}
|
|
|
|
<div class="distribusi">
|
|
|
|
<a href="/distribusi">
|
|
|
|
<input type="button" name="button" value="Distribusi"></input>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="logout">
|
|
|
|
<a href="/logout">
|
|
|
|
<input type="button" name="button" value="Logout"></input>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-01-07 16:55:40 +01:00
|
|
|
</div>
|
2022-01-05 13:42:24 +01:00
|
|
|
|
|
|
|
{% if current_user.is_authenticated %}
|
|
|
|
<h2> Hi {{ current_user.email }}! </h2>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-01-07 16:55:40 +01:00
|
|
|
<!-- a div with all the distribusis listed in the distribusiverse -->
|
|
|
|
<div id="distribusiverse">
|
2022-01-05 13:42:24 +01:00
|
|
|
<h2>List of distribusis</h2>
|
|
|
|
<ul>
|
2022-01-07 18:09:29 +01:00
|
|
|
{% for distribusiname in distribusinames %}
|
|
|
|
<li><a href="stash/{{distribusiname}}/index.html">{{distribusiname}}</a></li>
|
|
|
|
{% endfor%}
|
2022-01-05 13:42:24 +01:00
|
|
|
</ul>
|
2022-01-07 16:55:40 +01:00
|
|
|
</div>
|
2022-01-05 13:42:24 +01:00
|
|
|
{% endblock %}
|