summaryrefslogtreecommitdiffstats
path: root/templates/packages/details.html
blob: e0dd7034243ea3a9589d27fa97edd752b2ad261c (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
{% extends "base.html" %}
{% load package_extras %}

{% block title %}Arch Linux - {{ pkg.pkgname }} {{ pkg.full_version }} ({{ pkg.arch.name }}){% endblock %}
{% block navbarclass %}anb-packages{% endblock %}

{% load package_extras %}
{% block content %}
<div id="pkgdetails" class="box">

    <h2>Package Details: {{ pkg.pkgname }} {{ pkg.full_version }}</h2>

    <div id="detailslinks" class="listing">
        <div id="actionlist">
        <h4>Package Actions</h4>
            <ul class="small">
                <li>
                    <a href="{% scm_link pkg 'tree' %}" title="View source files for {{ pkg.pkgname }}">Source Files</a> /
                    <a href="{% scm_link pkg 'log' %}" title="View changes for {{ pkg.pkgname }}">View Changes</a>
                </li>
                <li>
                    <a href="{% bugs_list pkg %}" title="View existing bug tickets for {{ pkg.pkgname }}">Bug Reports</a> /
                    <a href="{% bug_report pkg %}" title="Report new bug for {{ pkg.pkgname }}">Add New Bug</a>
                </li>
                <li><a href="{% get_wiki_link pkg %}" title="Search wiki for {{ pkg.pkgname }}">Search Wiki</a></li>
                {% if pkg.flag_date %}
                <li><span class="flagged">Flagged out-of-date on {{ pkg.flag_date|date }}</span></li>
                {% with pkg.in_testing as tp %}{% if tp %}
                <li><span class="flagged">Version
                    <a href="{{ tp.get_absolute_url }}"
                        title="Testing package details for {{ tp.pkgname }}">{{ tp.full_version }}</a>
                    in testing</span></li>
                {% endif %}{% endwith %}
                {% if perms.main.change_package %}
                <li><a href="unflag/" title="Unflag this package">Click here to unflag</a></li>
                <li><a href="unflag/all/" title="Unflag all matching pkgbase">Click here to unflag all split packages</a></li>
                {% endif %}
                {% else %}
                <li><a href="flag/" title="Flag {{ pkg.pkgname }} as out-of-date">Flag Package Out-of-Date</a>
                <a href="/packages/flaghelp/"
                    title="Get help on package flagging"
                    onclick="return !window.open('/packages/flaghelp/','FlagHelp',
                    'height=350,width=450,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no');">(?)</a></li>
                {% endif %}
                <li><a href="download/" rel="nofollow" title="Download {{ pkg.pkgname }} from mirror">Download From Mirror</a></li>
            </ul>

            {% if perms.main.change_package %}
            <form id="pkg-action" method="post" action="/packages/update/">{% csrf_token %}
                <div><input type="hidden" name="pkgid" value="{{ pkg.id }}" /></div>
                <p>{% if user in pkg.maintainers %}
                    <input title="Orphan this package" type="submit" name="disown" value="Disown"/>
                    {% else %}
                    <input title="Adopt this package" type="submit" name="adopt" value="Adopt"/>
                 {% endif %}</p>
            </form>
            {% endif %}
        </div>

        {% with pkg.elsewhere as others %}{% if others %}
        <div id="elsewhere" class="widget">
            <h4>Versions Elsewhere</h4>
            <ul>
                {% for o in others %}
                <li><a href="{{ o.get_absolute_url }}"
                    title="Package details for {{ o.pkgname }}">{{ o.pkgname }} {{ o.full_version }} [{{ o.repo.name|lower }}] ({{ o.arch.name }})</a></li>
                {% endfor %}
            </ul>
        </div>
        {% endif %}{% endwith %}
    </div>

    <table id="pkginfo">
        <tr>
            <th>Architecture:</th>
            <td><a href="/packages/?arch={{ pkg.arch.name }}"
                    title="Browse packages for {{ pkg.arch.name }} architecture">{{ pkg.arch.name }}</a></td>
        </tr><tr>
            <th>Repository:</th>
            <td><a href="/packages/?repo={{ pkg.repo.name|capfirst }}"
                    title="Browse the {{ pkg.repo.name|capfirst }} repository">{{ pkg.repo.name|capfirst }}</a></td>
        </tr>
        {% ifequal pkg.pkgname pkg.pkgbase %}
        {% with pkg.split_packages as splits %}{% if splits %}
        <tr>
            <th>Split Packages:</th>
            <td>{% for s in splits %}{% pkg_details_link s %}<br/>{% endfor %}</td>
        </tr>
        {% endif %}{% endwith %}
        {% else %}
        <tr>
            <th>Base Package:</th>
            {% if pkg.base_package %}
            <td>{% pkg_details_link pkg.base_package %}</td>
            {% else %}
            <td><a href="../{{ pkg.pkgbase }}/"
                    title="Split package details for {{ pkg.pkgbase }}">{{ pkg.pkgbase }}</a></td>
            {% endif %}
        </tr>
        {% endifequal %}
        <tr>
            <th>Description:</th>
            <td class="wrap">{{ pkg.pkgdesc|default:"" }}</td>
        </tr><tr>
            <th>Upstream URL:</th>
            <td>{% if pkg.url %}<a href="{{ pkg.url }}"
                    title="Visit the website for {{ pkg.pkgname }}">{{ pkg.url|url_unquote }}</a>{% endif %}</td>
        </tr><tr>
            <th>License(s):</th>
            <td>{{ pkg.licenses.all|join:", " }}</td>
        </tr>
        {% with pkg.groups.all as groups %}{% if groups %}
        <tr>
            <th>Groups:</th>
            <td>{% for g in groups %}
                <a href="/groups/{{ pkg.arch.name }}/{{ g.name }}/"
                    title="Group details for {{ g.name }}">{{ g.name }}</a><br/>
                {% endfor %}
            </td>
        </tr>
        {% endif %}{% endwith %}
        {% with pkg.provides.all as provides %}{% if provides %}
        <tr>
            <th>Provides:</th>
            <td>{% for p in provides %}{{ p.name }}{% if p.version %}={{ p.version }}{% endif %}<br/>{% endfor %}</td>
        </tr>
        {% endif %}{% endwith %}
        <tr>
            <th>Maintainers:</th>
            {% with pkg.maintainers as maints %}
            <td>{% if maints %}
                {% for m in maints %}
                {% maintainer_link m %}<br/>
                {% endfor %}
                {% else %}Orphan{% endif %}
            </td>
            {% endwith %}
        </tr><tr>
            <th>Package Size:</th>
            <td>{{ pkg.compressed_size|filesizeformat }}</td>
        </tr><tr>
            <th>Installed Size:</th>
            <td>{{ pkg.installed_size|filesizeformat }}</td>
        </tr><tr>
            <th>Last Packager:</th>
            <td>{% with pkg.packager as pkgr %}{% if pkgr %}{% packager_link pkgr %}{% else %}{{ pkg.packager_str }}{% endif %}{% endwith %}</td>
        </tr><tr>
            <th>Signed:</th>
            <td>{{ pkg.is_signed|yesno|capfirst }}</td>
        </tr><tr>
            <th>Build Date:</th>
            <td>{{ pkg.build_date|date:"DATETIME_FORMAT" }} UTC</td>
        </tr><tr>
            <th>Last Updated:</th>
            <td>{{ pkg.last_update|date }}</td>
        </tr>
        {% if user.is_authenticated %}{% with pkg.flag_request as flag_request %}{% if flag_request %}<tr>
            <th>Last Flag Request:</th>
            <td class="wrap">From {{ flag_request.who }} on {{ flag_request.created|date }}:<br/>
                <div class="userdata">{{ flag_request.message|linebreaksbr|default:"{no message}" }}</div></td>
        </tr>{% endif %}{% endwith %}{% endif %}
    </table>

    <div id="metadata">

        {% with pkg.get_depends as deps %}
        <div id="pkgdeps" class="listing">
            <h3 title="{{ pkg.pkgname }} has the following dependencies">
                Dependencies ({{deps|length}})</h3>
            {% if deps %}<ul>
                {% for depend in deps %}{% include "packages/details_depend.html" %}{% endfor %}
            </ul>{% endif %}
        </div>
        {% endwith %}

        {% with pkg.get_requiredby as rqdby %}
        <div id="pkgreqs" class="listing">
            <h3 title="Packages that require {{ pkg.pkgname }}">
                Required By ({{rqdby|length}})</h3>
            {% if rqdby %}<ul>
                {% for req in rqdby %}{% include "packages/details_requiredby.html" %}{% endfor %}
            </ul>{% endif %}
        </div>
        {% endwith %}

        <div id="pkgfiles" class="listing">
            <h3 title="Complete list of files contained within this package">
                Package Contents</h3>
            <div id="pkgfilelist">
                <p><a id="filelink" href="files/"
                    title="Click to view the complete file list for {{ pkg.pkgname }}">
                    View the file list for {{ pkg.pkgname }}</a></p>
            </div>
        </div>

    </div>

</div>

{% load cdn %}{% jquery %}
<script type="text/javascript" src="{{ STATIC_URL }}archweb.js"></script>
<script type="text/javascript">
$(document).ready(ajaxifyFiles);
</script>
{% endblock %}