do not add files that are empty and have no name
[phorkie.git] / data / templates / list.htm
index 5142a7bf40db7e8c0c4a5107d5a1823bb3c7b586..4e2e4a677f847d17440c431e0dfabc642b5853e1 100644 (file)
@@ -2,23 +2,34 @@
 {% 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>
+  <a href="{{repo.getLink('display')}}">
+   {{repo.id}}
+   {{repo.getDescription}}
+  </a>
  </li>
 {% 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>