Variable forum/killboard/media urls on index #140

- only rendered if set, otherwise link removed
This commit is contained in:
Adarnof
2016-01-05 23:56:27 +00:00
parent b31dcb7ac0
commit 87393b8529
3 changed files with 32 additions and 12 deletions

View File

@@ -52,18 +52,27 @@
<img src="{% static 'img/index_images/auth.png' %}" border="0">
</a>
</p>
<p style="text-align:center">
<a href="/forums/">
<img src="{% static 'img/index_images/forums.png' %}" border="0">
</a>
</p>
<p style="text-align:center">
<a href="/killboard/">
<img src="{% static 'img/index_images/killboard.png' %}" border="0">
</a>
</p>
{% if FORUM_URL %}
<p style="text-align:center">
<a href="{{FORUM_URL}}">
<img src="{% static 'img/index_images/forums.png' %}" border="0">
</a>
</p>
{% endif %}
{% if KILLBOARD_URL %}
<p style="text-align:center">
<a href="{{KILLBOARD_URL}}">
<img src="{% static 'img/index_images/killboard.png' %}" border="0">
</a>
</p>
{% endif %}
{% if MEDIA_URL %}
<p style="text-align:center">
<a href="{{MEDIA_URL}}">
<img src="{% static 'img/index_images/media.png' %}" border="0">
</a>
</p>
{% endif %}
</div>
</body>
</html>