aboutsummaryrefslogtreecommitdiff
path: root/djangopypi/templates/djangopypi/search_results.html
diff options
context:
space:
mode:
Diffstat (limited to 'djangopypi/templates/djangopypi/search_results.html')
-rw-r--r--djangopypi/templates/djangopypi/search_results.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/djangopypi/templates/djangopypi/search_results.html b/djangopypi/templates/djangopypi/search_results.html
new file mode 100644
index 0000000..dccf61f
--- /dev/null
+++ b/djangopypi/templates/djangopypi/search_results.html
@@ -0,0 +1,31 @@
1{% extends "base_site.html" %}
2
3{% block bread_crumbs_1 %}›Search{% endblock %}
4
5{% block content %}
6 {% ifnotequal search_term ''%}
7 <h1>Index of Packages Matching '{{ search_term }}'</h1>
8 {% else %}
9 <h1>You need to supply a search term.</h1>
10 {% endifnotequal %}
11 {% if dists %}
12 <table>
13 <thead>
14 <th>Updated</th>
15 <th>Package</th>
16 <th>Summary</th>
17 </thead>
18 <tbody>
19 {% for dist in dists %}
20 <tr>
21 <td>{{ dist.updated|date:"d/m/y" }}
22 <td><a href="{{ dist.get_pypi_absolute_url }}"/>{{ dist.name }}</a></td>
23 <td>{{ dist.summary|truncatewords:10 }}</td>
24 </tr>
25 {% endfor %}
26 </tbody>
27 </table>
28 {% else %}
29 There were no matches.
30 {% endif %}
31{% endblock content %} \ No newline at end of file