Use commit timestamps for ElasticSearch and sort on last commit time.
[phorkie.git] / data / templates / list.htm
index b92e5882873287653b601c0c708b72c1cc1a78d5..aee3100bf49e417b26eb77d61f52465a7c974fc9 100644 (file)
@@ -8,24 +8,17 @@
 {% endfor %}
 </ul>
 
 {% endfor %}
 </ul>
 
-<ul class="pager">
- {% if links.prev %}
- <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 &rarr;</a>
- </li>
- {% else %}
- <li class="next disabled">
-  <a href="#">next &rarr;</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 %}
  {% endif %}
-</ul>
 {% endblock %}
 {% endblock %}