Make phorkie search engine friendlier
[phorkie.git] / data / templates / list.htm
index ea71bd65fdea92686b201dfeb911d88ac326daf1..45b32f451402a3ad312d8aacce86a93db2c8a671 100644 (file)
@@ -1,33 +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 %}
-<ul class="list">
+<div class="content-padding-fix"></div>
+<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="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 %}