Add top tags
This commit is contained in:
parent
555c6c0d89
commit
669f9b999b
2 changed files with 38 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
{% extends "base_dark.html" %}
|
||||
{% load top_tags %}
|
||||
|
||||
<!-- Title -->
|
||||
{% block title %} Gallery {% endblock %}
|
||||
|
@ -7,6 +8,20 @@
|
|||
{% block content %}
|
||||
Hello World!
|
||||
|
||||
<ul>
|
||||
{% last_albums as albums %}
|
||||
{% for album in albums %}
|
||||
<li>{{ album.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
{% top_photos as photos %}
|
||||
{% for photo in photos %}
|
||||
<li>{{ photo.views }} {{ photo.likes }} {{ photo.is_favorite }} {{ photo }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<p>Istunto vanhenee: {{ session_expiry|date:"d.m.Y H:i" }}</p>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue