Make phorkie search engine friendlier
[phorkie.git] / data / templates / list.htm
index b92e5882873287653b601c0c708b72c1cc1a78d5..45b32f451402a3ad312d8aacce86a93db2c8a671 100644 (file)
@@ -1,31 +1,30 @@
 {% extends "base.htm" %}
 {% block title %}List of all pastes{% endblock %}
 
+{% block meta %}
+ <link rel="alternate" type="application/atom+xml" title="New pastes" href="feed/new" />
+ <link rel="alternate" type="application/atom+xml" title="Updated pastes" href="feed/updated" />
+{% endblock %}
+
 {% block content %}
+<div class="content-padding-fix"></div>
 <ul class="nav nav-pills nav-stacked">
 {% for repo in repos %}
  {% 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 %}
+  <h4>Recently updated</h4>
+  <ul class="unstyled">
+  {% for repo in recents.repos %}
+   {% include 'repo-sidebar-list.htm' %}
+  {% endfor %}
+  </ul>
  {% endif %}
-</ul>
 {% endblock %}