summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-22 18:30:45 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-22 18:30:45 -0400
commit6ba8f3f7deb4ef68fe2a89ae24dabcd1d32ad3f7 (patch)
treee0c440a25edace6edf6dba52d691c99058379001 /templates
parented8fe6c27a39222604e65acdb09de27fd85fb0a2 (diff)
Add custom links to dashboard
Diffstat (limited to 'templates')
-rw-r--r--templates/mod/dashboard.html30
1 files changed, 21 insertions, 9 deletions
diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html
index 619663f5..5f6585fc 100644
--- a/templates/mod/dashboard.html
+++ b/templates/mod/dashboard.html
@@ -102,17 +102,29 @@
</fieldset>
{% if mod|hasPermission(config.mod.search) %}
-<fieldset>
- <legend>{% trans 'Search' %}</legend>
-
- <ul>
- <li>
- {% include 'mod/search_form.html' %}
- </li>
- </ul>
-</fieldset>
+ <fieldset>
+ <legend>{% trans 'Search' %}</legend>
+
+ <ul>
+ <li>
+ {% include 'mod/search_form.html' %}
+ </li>
+ </ul>
+ </fieldset>
{% endif %}
+{% if config.mod.dashboard_links|count %}
+ <fieldset>
+ <legend>{% trans 'Other' %}</legend>
+
+ <ul>
+ {% for label,link in config.mod.dashboard_links %}
+ <li><a href="{{ link }}">{{ label }}</a></li>
+ {% endfor %}
+ </ul>
+ </fieldset>
+{% endif %}
+
{% if config.debug %}
<fieldset>
<legend>{% trans 'Debug' %}</legend>