feat: List domains user can see on homepage
This commit is contained in:
parent
58a8c375f0
commit
8a7e644960
11 changed files with 136 additions and 58 deletions
|
|
@ -6,6 +6,23 @@
|
|||
<div id="login-line">
|
||||
<a href="/logout" id="submit-login" value="Logout">Logout</a>
|
||||
</div>
|
||||
{% if can_create_domain %}
|
||||
<div>
|
||||
<h2>Create domain</h2>
|
||||
<form action="/domains" method="POST">
|
||||
<input type="text" name="domainname" placeholder="example.com">
|
||||
<button type="submit" class="button is-info">Create</button>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Active domains you can see</h2>
|
||||
<ul>
|
||||
{% for domain in domains %}
|
||||
<li><a href="/domain/{{ domain.name }}">{{ domain.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if other_users %}
|
||||
<div>
|
||||
<h2>Other users you have permission to see on your own domain</h2>
|
||||
|
|
|
|||
Loading…
Reference in a new issue