Add list of moderators to sidebar (#213)

* Added list of moderators to sidebar & added wiki not found message

* Improved code formatting
This commit is contained in:
curlpipe 2021-05-04 18:30:54 +01:00 committed by GitHub
parent 9e4066658c
commit 1211d781d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 3 deletions

View file

@ -99,7 +99,17 @@
</div>
<details class="panel" id="sidebar">
<summary id="sidebar_label">Sidebar</summary>
<div id="sidebar_contents">{{ sub.info }}</div>
<div id="sidebar_contents">
{{ sub.info }}
<hr>
<h2>Moderators</h2>
<br>
<ul>
{% for moderator in sub.moderators %}
<li><a style="color: var(--accent)" href="/u/{{ moderator }}">{{ moderator }}</a></li>
{% endfor %}
</ul>
</div>
</details>
</aside>
{% endif %}