delete previous files when updating
[phorkie.git] / data / templates / list.htm
index 5142a7bf40db7e8c0c4a5107d5a1823bb3c7b586..b92e5882873287653b601c0c708b72c1cc1a78d5 100644 (file)
@@ -2,23 +2,29 @@
 {% block title %}List of all pastes{% endblock %}
 
 {% block content %}
-<ul class="list">
+<ul class="nav nav-pills nav-stacked">
 {% for repo in repos %}
- <li>
-  <h2><a href="{{repo.getLink('display')}}">{{repo.id}}</a></h2>
-  <p>{{repo.getDescription}}</p>
- </li>
+ {% include 'repo-list.htm' %}
 {% endfor %}
 </ul>
+
 <ul class="pager">
  {% if links.prev %}
- <li class="prev">
-  <a href="{{links.prev}}">prev</a>
+ <li class="previous">
+  <a href="{{links.prev}}">&larr; prev</a>
+ </li>
+ {% else %}
+ <li class="previous disabled">
+  <a href="#">&larr; prev</a>
  </li>
  {% endif %}
  {% if links.next %}
  <li class="next">
-  <a href="{{links.next}}">next</a>
+  <a href="{{links.next}}">next &rarr;</a>
+ </li>
+ {% else %}
+ <li class="next disabled">
+  <a href="#">next &rarr;</a>
  </li>
  {% endif %}
 </ul>