Use commit timestamps for ElasticSearch and sort on last commit time.
[phorkie.git] / data / templates / list.htm
index 5142a7bf40db7e8c0c4a5107d5a1823bb3c7b586..aee3100bf49e417b26eb77d61f52465a7c974fc9 100644 (file)
@@ -2,24 +2,23 @@
 {% 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>
- {% endif %}
- {% if links.next %}
- <li class="next">
-  <a href="{{links.next}}">next</a>
- </li>
+
+ {% include 'pager.htm' %}
+
+{% endblock %}
+
+{% block sidebar %}
+ {% if recents.results %}
+  <h3>Recently updated</h3>
+  <ul>
+  {% for repo in recents.repos %}
+   {% include 'repo-sidebar-list.htm' %}
+  {% endfor %}
+  </ul>
  {% endif %}
-</ul>
 {% endblock %}