added search url to navbar

This commit is contained in:
Esther Kleinhenz 2018-10-21 10:39:18 +02:00
parent df5d420505
commit 3c7005afaf
3 changed files with 7 additions and 1 deletions

View File

@ -37,6 +37,9 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="{% url 'student_page' %}">Studentenansicht</a> <a class="nav-link" href="{% url 'student_page' %}">Studentenansicht</a>
</li> </li>
<li class="nav-item">
<a class="nav-link" href="{% url 'blog_search_list_view' %}">Suche</a>
</li>
{% elif user.is_staff %} {% elif user.is_staff %}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="{% url 'logout' %}">Administration</a> <a class="nav-link" href="{% url 'logout' %}">Administration</a>

View File

@ -4,7 +4,7 @@
{% include_tagcloud 'application.Post' %} {% include_tagcloud 'application.Post' %}
<form type="get" action="." style="margin: 0"> <form type="get" action="." style="margin: 0">
<input id="search_box" type="text" name="search_box" placeholder="Search..."> <input id="search_box" type="text" name="search_box" placeholder="Search...">
<button id="search_submit" type="submit">Submit</button> <button id="search_submit" type="submit">Suchen</button>
</form> </form>
<div> <div>
{% for post in posts %} {% for post in posts %}

View File

@ -135,3 +135,6 @@
[20/Oct/2018 23:41:40] INFO [mysite:184] hi [20/Oct/2018 23:41:40] INFO [mysite:184] hi
[20/Oct/2018 23:41:50] INFO [mysite:184] hi [20/Oct/2018 23:41:50] INFO [mysite:184] hi
[20/Oct/2018 23:41:56] INFO [mysite:184] taggit [20/Oct/2018 23:41:56] INFO [mysite:184] taggit
[21/Oct/2018 10:35:50] INFO [mysite:184] taggit
[21/Oct/2018 10:35:55] INFO [mysite:184]
[21/Oct/2018 10:38:17] INFO [mysite:184] None