Added basic user authentication.
This commit is contained in:
@@ -43,11 +43,21 @@
|
||||
<!-- Page links. -->
|
||||
{% if num_pages > 1 %}
|
||||
<td>
|
||||
<div class="mauto">
|
||||
<div class="mauto mr-2">
|
||||
{% for page in pages %}<a href="./?page={{page}}{%if search %}&{{search}}{% endif %}">{{page}}</a>{% if not forloop.last %}<span> </span>{% endif %}{% endfor %}
|
||||
</div>
|
||||
</td>
|
||||
{% endif %}
|
||||
|
||||
<!-- Logout button. -->
|
||||
<td>
|
||||
<form method="post" action="{% url 'logout' %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="clear-btn">
|
||||
<img src="{% static 'imgs/boot.png' %}" class="small-nav-icon">
|
||||
</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -70,7 +80,7 @@
|
||||
|
||||
<!-- Search submit. -->
|
||||
<td>
|
||||
<button type="submit" class="search-btn">
|
||||
<button type="submit" class="clear-btn">
|
||||
<img src="{% static 'imgs/find.png' %}" class="small-nav-icon">
|
||||
</button>
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user