diff options
Diffstat (limited to 'templates/packages')
-rw-r--r-- | templates/packages/details.html | 77 | ||||
-rw-r--r-- | templates/packages/files.html | 11 | ||||
-rw-r--r-- | templates/packages/flag.html | 26 | ||||
-rw-r--r-- | templates/packages/flaghelp.html | 14 | ||||
-rw-r--r-- | templates/packages/outofdate.txt | 13 | ||||
-rw-r--r-- | templates/packages/search.html | 120 |
6 files changed, 261 insertions, 0 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html new file mode 100644 index 00000000..65de079a --- /dev/null +++ b/templates/packages/details.html @@ -0,0 +1,77 @@ +{% load package_extras %} +{% extends "base.html" %} + +{% block content %} + <div class="box"> + <h2 class="title">{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</h2> + <div style="float:right" class="listing"> + <ul class="small"> + <li><a href="http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/{{ pkg.category.category }}/{{ pkg.pkgname }}/?cvsroot={{ pkg.repo.name }}&only_with_tag=CURRENT">View CVS Entries</a></li> + <li><a href="/packages/files/{{ pkg.id }}/">View File List</a></li> + <li> + {% if pkg.needupdate %} + <span style="font-size:x-small"><em>This package has been flagged out-of-date</em></span> + {% if not user.is_anonymous %}{% if pkg.maintainer %}{% ifequal user.username pkg.maintainer.username %} + <br /> <a href="/packages/unflag/{{ pkg.id }}/">Click here to unflag</a> + {% endifequal %}{% endif %}{% endif %} + {% else %} + <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> + <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> + {% endif %} + </li> + {% if not user.is_anonymous %} + <li> </li> + <li> + <form name="devaction" method="post" action="/packages/update/"> + <input type="hidden" name="pkgid" value="{{ pkg.id }}" /> + <input type="submit" style="background: #e1e3e6;" name="adopt" value="Adopt Package" /> + <input type="submit" style="background: #e1e3e6;" name="disown" value="Disown Package" /> + </form> + </li> + {% endif %} + </ul> + </div> + <table class="listing"> + <tr> + <th>Repository:</th> + <td>{{ pkg.repo.name }}</td> + </tr><tr> + <th>Category:</th> + <td>{{ pkg.category.category }}</td> + </tr><tr> + <th>Description:</th> + <td>{{ pkg.pkgdesc }}</td> + </tr><tr> + <th>URL:</th> + <td><a href="{{ pkg.url }}">{{ pkg.url }}</a></td> + </tr><tr> + <th>Maintainer:</th> + <td>{% if pkg.maintainer %}{{ pkg.maintainer.get_full_name }}{% else %}None{% endif %}</td> + </tr><tr> + <th>LastUpdated:</th> + <td>{{ pkg.last_update|date:"Y-m-d" }}</td> + </tr> + </table> + <br /> + <table width="100%"> + <tr> + <td valign="top"> + <div class="listing"> + <h4>Dependencies:</h4> + <ul style="font-size:small;list-style:none"> + {{ pkg.depends_urlize }} + </ul> + </div> + </td><td colspan="2" valign="top"> + <div class="listing"> + <h4>Sources:</h4> + <ul style="font-size:small;list-style:none"> + {{ pkg.sources_urlize }} + </ul> + </div> + </td> + </tr> + </table> + </div> +{% endblock %} + diff --git a/templates/packages/files.html b/templates/packages/files.html new file mode 100644 index 00000000..24f55819 --- /dev/null +++ b/templates/packages/files.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block content %} + <div class="box"> + <h3>Viewing Files: {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</h3> + {% for file in files %} + {{ file.path }}<br /> + {% endfor %} + </div> +{% endblock %} + diff --git a/templates/packages/flag.html b/templates/packages/flag.html new file mode 100644 index 00000000..215b6fa8 --- /dev/null +++ b/templates/packages/flag.html @@ -0,0 +1,26 @@ +{% load validation %} +<html> +<head><title>Flagging Packages</title></head> +<body> +{% if errors %} + {% print_errors errors %} +{% endif %} +<span style="font-family: verdana, arial, helvetica"> +{% if confirmemail %} + Thank you. Maintainers have been notified. +{% else %} +<form method="post" action="."> + Please confirm your flag request.<br /> + <br /> + Email Address: (required) <br /> + <input type="text" name="confirmemail" size="40" maxlength="128" /><br /> + <br /> + Message to dev: (optional)<br /> + <textarea name="usermessage" rows="3" cols="40"></textarea><br /> + <input type="submit" value=" Confirm " /> +</form> +{% endif %} +</span> +</body> +</html> + diff --git a/templates/packages/flaghelp.html b/templates/packages/flaghelp.html new file mode 100644 index 00000000..09f7530b --- /dev/null +++ b/templates/packages/flaghelp.html @@ -0,0 +1,14 @@ +<html> +<head><title>Flagging Packages</title></head> +<body> +<span style="font-family: verdana, arial, helvetica"> +If you notice that one of Arch's packages is out of date (ie, there is a newer +<b>stable</b> release available), then please notify us by using the <b>Flag</b> +button in the <i>Package Details</i> screen. This will notify the maintainer +responsible for that package so they can update it. +<br><br> +<b>Note:</b> Please do <i>not</i> use this facility if the package is broken! +Use the <a target="_blank" href='http://bugs.archlinux.org'>bugtracker</a> instead. +</span> +</body> +</html> diff --git a/templates/packages/outofdate.txt b/templates/packages/outofdate.txt new file mode 100644 index 00000000..7b863608 --- /dev/null +++ b/templates/packages/outofdate.txt @@ -0,0 +1,13 @@ + +* Note: this is an automated message + +{{ email }} wants to notify you that the following package may be out +of date: + + {{ pkgname }} ({{ weburl }}) +{% if message %} +The user provided the following additional text: + +{{ message }} +{% endif %} + diff --git a/templates/packages/search.html b/templates/packages/search.html new file mode 100644 index 00000000..030289d4 --- /dev/null +++ b/templates/packages/search.html @@ -0,0 +1,120 @@ +{% load validation %} +{% load package_extras %} +{% extends "base.html" %} + +{% block head %} +<script type="text/JavaScript" src="/media/calendar.js"></script> +<link href="/media/calendar.css" rel="stylesheet" type="text/css" /> +{% endblock %} + +{% block content %} + <div class="greybox"> + <h4 style="text-align: right">Search Criteria</h4> + {% if errors %} + {% print_errors errors %} + {% endif %} + <hr /> + <form method="get" action="/packages/search/"> + <table width="100%"> + <tr> + <td><span class="smalltext">Repository</span></td> + <td><span class="smalltext">Category</span></td> + <td><span class="smalltext">Keywords</span></td> + <td><span class="smalltext">Last Update</span></td> + <td><span class="smalltext">Per Page</span></td> + </tr><tr> + <td> + <select name="repo"> + <option value="all">All</option> + {% for r in repos %} + <option value="{{ r.name }}"{% ifequal repo r.name %} selected{% endifequal %}>{{ r.name|capfirst }}</option> + {% endfor %} + </select> + </td><td> + <select name="category"> + <option value="all">All</option> + {% for c in categories %} + <option value="{{ c.category }}"{% ifequal category c.category %} selected{% endifequal %}>{{ c.category|capfirst }}</option> + {% endfor %} + </select> + </td><td> + <input type="text" name="q" value="{{ query|escape }}" size="30" maxlength="200" /> + </td><td> + <input type="text" name="lastupdate" value="{{ lastupdate|escape }}" size="10" maxlength="10" id="f_lastupdate" /> <button type="reset" id="f_trigger">...</button> + <script type="text/javascript"> + Calendar.setup({ + inputField : "f_lastupdate", // id of the input field + ifFormat : "%Y-%m-%d", // format of the input field + showsTime : false, // will display a time selector + button : "f_trigger", // trigger for the calendar (button ID) + singleClick : true, // double-click mode + step : 1 // show all years in drop-down boxes (instead of every other year as default) + }); + </script> + </td><td> + <select name="limit"> + <option value="50"{% ifequal limit 50 %} selected{% endifequal %}>50</option> + <option value="100"{% ifequal limit 100 %} selected{% endifequal %}>100</option> + <option value="250"{% ifequal limit 250 %} selected{% endifequal %}>250</option> + <option value="0"{% ifequal limit 0 %} selected{% endifequal %}>All</option> + </select> + </td><td> + <input type="submit" value=" Search " /> + </td> + </tr> + </table> + </form> + </div> + <br /><br /> + + {% if results %} + <div class="greybox"> + <table class="results" width="100%"> + <tr> + {% if not user.is_anonymous %} + <form method="post" action="/packages/update/"> + <th> </th> + {% endif %} + <th><a href="{% buildsortqs "repo" %}">Repo</a></th> + <th><a href="{% buildsortqs "category" %}">Category</a></th> + <th><a href="{% buildsortqs "pkgname" %}">Name</a></th> + <th>Version</th> + <th>Description</th> + <th><a href="{% buildsortqs "last_update" %}">Last Updated</a></th> + </tr> + {% for pkg in results %} + <tr class="{% cycle pkgr1,pkgr2 %}"> + {% if not user.is_anonymous %} + <td><input type="checkbox" name="pkgid" value="{{ pkg.id }}" /></td> + {% endif %} + <td>{{ pkg.repo.name }}</td> + <td>{{ pkg.category.category }}</td> + <td><a href="{{ pkg.get_absolute_url }}">{{ pkg.pkgname }}</a></td> + {% if pkg.needupdate %} + <td><span style="color:red">{{ pkg.pkgver }}-{{ pkg.pkgrel }}</span></td> + {% else %} + <td>{{ pkg.pkgver }}-{{ pkg.pkgrel }}</td> + {% endif %} + <td>{{ pkg.pkgdesc }}</td> + <td>{{ pkg.last_update|date:"Y-m-d" }}</td> + </tr> + {% endfor %} + <tr> + <td colspan="2" style="font-size:x-small">{% if prevpage %}<br /><a href="{{ prevpage }}"><<< Prev</a>{% endif %}</td> + <td colspan="2"> </td> + <td colspan="2" style="font-size:x-small;text-align:right">{% if nextpage %}<br /><a href="{{ nextpage }}">Next >>></a>{% endif %}</td> + </tr> + {% if not user.is_anonymous %} + <tr> + <td colspan="3"> </td> + <td colspan="2" style="text-align:center"><input type="submit" name="adopt" value="Adopt Packages"></td> + <td colspan="1" style="text-align:center"><input type="submit" name="disown" value="Disown Packages"></td> + <td colspan="1"> </td> + </tr> + </form> + {% endif %} + </table> + </div> + {% endif %} +{% endblock %} + |