summaryrefslogtreecommitdiff
path: root/templates/mod/dashboard.html
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-20 07:50:33 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-20 07:50:33 -0400
commite62b83e79c8ed3b9ddf6e7e4b8bdeedc0d319ff4 (patch)
tree2cefd703a26f7de18782f3b0f7ba90230ff4cc30 /templates/mod/dashboard.html
parent158a7c0e79a7d0e8000e8797a277c3fdbf463e0d (diff)
Bring back search (searching posts not implemented yet)
Diffstat (limited to 'templates/mod/dashboard.html')
-rw-r--r--templates/mod/dashboard.html11
1 files changed, 3 insertions, 8 deletions
diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html
index e54b3cd3..619663f5 100644
--- a/templates/mod/dashboard.html
+++ b/templates/mod/dashboard.html
@@ -101,22 +101,17 @@
</ul>
</fieldset>
-{#
+{% if mod|hasPermission(config.mod.search) %}
<fieldset>
<legend>{% trans 'Search' %}</legend>
<ul>
<li>
- <form style="display:inline" action="?/search" method="post">
- <label style="display:inline" for="search">{% trans 'Phrase:' %}</label>
- <input id="search" name="search" type="text" size="35">
- <input type="submit" value="{% trans 'Search' %}">
- </form>
- <p class="unimportant">{% trans '(Search is case-insensitive, and based on keywords. To match exact phrases, use "quotes". Use an asterisk (*) for wildcard.)' %}</p>
+ {% include 'mod/search_form.html' %}
</li>
</ul>
</fieldset>
-#}
+{% endif %}
{% if config.debug %}
<fieldset>