warn about non-configured search adapter during indexing
[phorkie.git] / data / templates / list.htm
index 4e2e4a677f847d17440c431e0dfabc642b5853e1..45b32f451402a3ad312d8aacce86a93db2c8a671 100644 (file)
@@ -1,36 +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 %}
- <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 %}
+  <h4>Recently updated</h4>
+  <ul class="unstyled">
+  {% for repo in recents.repos %}
+   {% include 'repo-sidebar-list.htm' %}
+  {% endfor %}
+  </ul>
  {% endif %}
-</ul>
 {% endblock %}