aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authortcit <tcit@tcit.fr>2014-03-22 11:09:18 +0100
committertcit <tcit@tcit.fr>2014-03-22 11:09:18 +0100
commita33a3d2afb6a861e194599973e31e5e448617296 (patch)
treea8c846472db8fabe7cadbaad0f87bb420ce228ae /themes
parent028e34b6c40c3571d35c49d5a27b7eac19ceb4ef (diff)
downloadwallabag-a33a3d2afb6a861e194599973e31e5e448617296.tar.gz
wallabag-a33a3d2afb6a861e194599973e31e5e448617296.tar.zst
wallabag-a33a3d2afb6a861e194599973e31e5e448617296.zip
Implemented rudimental search engine
Diffstat (limited to 'themes')
-rw-r--r--themes/default/_menu.twig1
-rwxr-xr-xthemes/default/home.twig24
2 files changed, 24 insertions, 1 deletions
diff --git a/themes/default/_menu.twig b/themes/default/_menu.twig
index 55583b3d..e2644b0f 100644
--- a/themes/default/_menu.twig
+++ b/themes/default/_menu.twig
@@ -4,6 +4,7 @@
4 <li><a href="./?view=archive" {% if view == 'archive' %}class="current"{% endif %}>{% trans "archive" %}</a></li> 4 <li><a href="./?view=archive" {% if view == 'archive' %}class="current"{% endif %}>{% trans "archive" %}</a></li>
5 <li><a href="./?view=tags" {% if view == 'tags' %}class="current"{% endif %}>{% trans "tags" %}</a></li> 5 <li><a href="./?view=tags" {% if view == 'tags' %}class="current"{% endif %}>{% trans "tags" %}</a></li>
6 <li><a href="javascript: void(null);" id="pocheit">{% trans "save a link" %}</a><span id="pocheit-arrow"></span></li> 6 <li><a href="javascript: void(null);" id="pocheit">{% trans "save a link" %}</a><span id="pocheit-arrow"></span></li>
7 <li><a href="javascript: void(null);" id="search">{% trans "search" %}</a><span id="search-arrow"></span></li>
7 <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li> 8 <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li>
8 <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> 9 <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li>
9 </ul> 10 </ul>
diff --git a/themes/default/home.twig b/themes/default/home.twig
index bd5fc2d6..e3e8c6af 100755
--- a/themes/default/home.twig
+++ b/themes/default/home.twig
@@ -12,7 +12,29 @@
12{% include '_menu.twig' %} 12{% include '_menu.twig' %}
13{% endblock %} 13{% endblock %}
14{% block precontent %} 14{% block precontent %}
15 {% include '_sorting.twig' %} 15<div id="search-form" class="messages info">
16<form method="post" action="index.php?view=search">
17 <p>
18 <label>{% trans "Search" %}</label> : <input type="text" placeholder="{% trans "Enter your search here" %}" name="search" />
19 <input type="submit" value="{% trans "Search" %} !"></input>
20 </p>
21</form>
22</div>
23<script type="text/javascript">
24 $(document).ready(function() {
25
26 $("#search-form").hide();
27
28 $("#search").click(function(){
29 $("#search-form").toggle();
30 $("#search").toggleClass("current");
31 $("#search-arrow").toggleClass("arrow-down");
32 });
33
34
35 });
36</script>
37{% include '_sorting.twig' %}
16{% endblock %} 38{% endblock %}
17{% block content %} 39{% block content %}
18 {% if tag %} 40 {% if tag %}