Use commit timestamps for ElasticSearch and sort on last commit time.
[phorkie.git] / data / templates / list.htm
index 4e2e4a677f847d17440c431e0dfabc642b5853e1..aee3100bf49e417b26eb77d61f52465a7c974fc9 100644 (file)
@@ -4,33 +4,21 @@
 {% block content %}
 <ul class="nav nav-pills nav-stacked">
 {% for repo in repos %}
- <li>
-  <a href="{{repo.getLink('display')}}">
-   {{repo.id}}
-   {{repo.getDescription}}
-  </a>
- </li>
+ {% include 'repo-list.htm' %}
 {% 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 %}
-</ul>
 {% endblock %}