Some style fixes
[archweb_dev-nj.git] / templates / packages / details.html
blob65de079a0a6fcab0e7b03f1b633e510b89d09c12
1 {% load package_extras %}
2 {% extends "base.html" %}
4 {% block content %}
5 <div class="box">
6 <h2 class="title">{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</h2>
7 <div style="float:right" class="listing">
8 <ul class="small">
9 <li><a href="http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/{{ pkg.category.category }}/{{ pkg.pkgname }}/?cvsroot={{ pkg.repo.name }}&amp;only_with_tag=CURRENT">View CVS Entries</a></li>
10 <li><a href="/packages/files/{{ pkg.id }}/">View File List</a></li>
11 <li>
12 {% if pkg.needupdate %}
13 <span style="font-size:x-small"><em>This package has been flagged out-of-date</em></span>
14 {% if not user.is_anonymous %}{% if pkg.maintainer %}{% ifequal user.username pkg.maintainer.username %}
15 <br />&nbsp; &nbsp; <a href="/packages/unflag/{{ pkg.id }}/">Click here to unflag</a>
16 {% endifequal %}{% endif %}{% endif %}
17 {% else %}
18 <a href="/packages/flag/{{ pkg.id }}/" onclick="return !window.open('/packages/flag/{{ pkg.id }}/','FlagHelp','height=250,width=450,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no');">Flag Package Out-of-Date</a>
19 <a href="/packages/flaghelp" onclick="return !window.open('/packages/flaghelp','FlagHelp','height=250,width=450,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no');"><span style="font-size:x-small">(?)</span></a>
20 {% endif %}
21 </li>
22 {% if not user.is_anonymous %}
23 <li>&nbsp;</li>
24 <li>
25 <form name="devaction" method="post" action="/packages/update/">
26 <input type="hidden" name="pkgid" value="{{ pkg.id }}" />
27 <input type="submit" style="background: #e1e3e6;" name="adopt" value="Adopt Package" />
28 <input type="submit" style="background: #e1e3e6;" name="disown" value="Disown Package" />
29 </form>
30 </li>
31 {% endif %}
32 </ul>
33 </div>
34 <table class="listing">
35 <tr>
36 <th>Repository:</th>
37 <td>{{ pkg.repo.name }}</td>
38 </tr><tr>
39 <th>Category:</th>
40 <td>{{ pkg.category.category }}</td>
41 </tr><tr>
42 <th>Description:</th>
43 <td>{{ pkg.pkgdesc }}</td>
44 </tr><tr>
45 <th>URL:</th>
46 <td><a href="{{ pkg.url }}">{{ pkg.url }}</a></td>
47 </tr><tr>
48 <th>Maintainer:</th>
49 <td>{% if pkg.maintainer %}{{ pkg.maintainer.get_full_name }}{% else %}None{% endif %}</td>
50 </tr><tr>
51 <th>LastUpdated:</th>
52 <td>{{ pkg.last_update|date:"Y-m-d" }}</td>
53 </tr>
54 </table>
55 <br />
56 <table width="100%">
57 <tr>
58 <td valign="top">
59 <div class="listing">
60 <h4>Dependencies:</h4>
61 <ul style="font-size:small;list-style:none">
62 {{ pkg.depends_urlize }}
63 </ul>
64 </div>
65 </td><td colspan="2" valign="top">
66 <div class="listing">
67 <h4>Sources:</h4>
68 <ul style="font-size:small;list-style:none">
69 {{ pkg.sources_urlize }}
70 </ul>
71 </div>
72 </td>
73 </tr>
74 </table>
75 </div>
76 {% endblock %}