Browse Source

added search url to navbar

newsletter
Esther Kleinhenz 6 years ago
parent
commit
3c7005afaf
3 changed files with 7 additions and 1 deletions
  1. 3
    0
      application/templates/base.html
  2. 1
    1
      application/templates/blog_search_list_view.html
  3. 3
    0
      log.txt

+ 3
- 0
application/templates/base.html View File

<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>

+ 1
- 1
application/templates/blog_search_list_view.html View File

{% 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 %}

+ 3
- 0
log.txt View File

[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

Loading…
Cancel
Save