diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/list.htm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/data/templates/list.htm b/data/templates/list.htm new file mode 100644 index 0000000..5142a7b --- /dev/null +++ b/data/templates/list.htm @@ -0,0 +1,25 @@ +{% extends "base.htm" %} +{% block title %}List of all pastes{% endblock %} + +{% block content %} +<ul class="list"> +{% for repo in repos %} + <li> + <h2><a href="{{repo.getLink('display')}}">{{repo.id}}</a></h2> + <p>{{repo.getDescription}}</p> + </li> +{% endfor %} +</ul> +<ul class="pager"> + {% if links.prev %} + <li class="prev"> + <a href="{{links.prev}}">prev</a> + </li> + {% endif %} + {% if links.next %} + <li class="next"> + <a href="{{links.next}}">next</a> + </li> + {% endif %} +</ul> +{% endblock %} |
