summaryrefslogtreecommitdiff
path: root/templates/mod/dashboard.html
diff options
context:
space:
mode:
authorCzterooki <czterooki1337@gmail.com>2013-07-20 18:28:57 -0400
committerCzterooki <czterooki1337@gmail.com>2013-07-20 18:28:57 -0400
commitbc1bc9f6ef08d778b7218e86ea00f43c1d9bce81 (patch)
tree104fcb30ac68a0f76c0aec37fb01ff65c409f927 /templates/mod/dashboard.html
parentca5283abaddb6014bc6075ea9fbf3a8daa19f2cc (diff)
parentd31be1958de76e5cabc14ddd410287055b6dac0c (diff)
Merge branch 'master' of github.com:vichan-devel/Tinyboard
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>