Reorganised routes so that routes/wiki.clj is less overcrowded and messy.

This commit is contained in:
simon 2016-09-11 17:38:46 +01:00
parent 09fe67a26e
commit 44263c3fa0
8 changed files with 178 additions and 95 deletions

View file

@ -1 +1 @@
{:admin {:admin true, :email "info@weft.scot", password "admin"}}
{:admin {:admin true, :email "info@weft.scot", :password "admin"}}

View file

@ -1 +1 @@
This is the page linked to from the left bar.
This is the page linked to from the [[Introduction]] page.

View file

@ -2,11 +2,20 @@
{% block content %}
<div id="content">
<ul>
<table>
<tr>
<th>Edit</th><th>Delete</th>
</tr>
{% for user in users %}
<li><a href="edit-user?target={{user}}">{{user}}</a></li>
<tr>
<td><a href="edit-user?target={{user}}">Edit {{user}}</a></td>
<td><a href="delete-user?target={{user}}">Delete {{user}}</a></td>
</tr>
{% endfor %}
<li><a href="edit-user">Add new user</a></li>
</ul>
<tr>
<td><a href="edit-user">Add new user</a></td>
<td></td>
</tr>
</table>
</div>
{% endblock %}