aboutsummaryrefslogtreecommitdiff
path: root/chishop/templates/djangopypi/search_results.html
blob: dccf61fc1f1f81363fd4fa7918504def44640ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% extends "base_site.html" %}

{% block bread_crumbs_1 %}›Search{% endblock %}

{% block content %}
    {% ifnotequal search_term ''%}
        <h1>Index of Packages Matching '{{ search_term }}'</h1>
    {% else %}
        <h1>You need to supply a search term.</h1>
    {% endifnotequal %}
    {% if dists %}
        <table>
            <thead>
                <th>Updated</th>
                <th>Package</th>
                <th>Summary</th>
            </thead>
            <tbody>
            {% for dist in dists %}
                <tr>
                    <td>{{ dist.updated|date:"d/m/y" }}
                    <td><a href="{{ dist.get_pypi_absolute_url }}"/>{{ dist.name }}</a></td>
                    <td>{{ dist.summary|truncatewords:10 }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% else %}
        There were no matches.
    {% endif %}
{% endblock content %}