diff options
author | Sean Finney <seanius@debian.org> | 2010-05-13 11:19:53 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2010-05-13 11:19:53 +0200 |
commit | 5924a11cfb9adfc57327d571f0f644cb1dcec8a0 (patch) | |
tree | adf6424dcef70bf94ec14f455c9bf9b9db4d9bc5 /templates | |
parent | 74cef20527c5381b4aa16976f9a15df470a195cd (diff) | |
download | patch-tracker-5924a11cfb9adfc57327d571f0f644cb1dcec8a0.tar.gz |
implement package/version view in django
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 34 | ||||
-rw-r--r-- | templates/package_vers.html | 121 |
2 files changed, 155 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..aa832ad --- /dev/null +++ b/templates/base.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html> + <head> + <title>{% block title %}{% endblock %}</title> + <link rel="stylesheet" type="text/css" + href="/static/css/patches.css"/> + </head> + <body> + <div class="pageheader"> + <img alt="[patchlogo]" src="/static/img/swirlpatch.png"/> + <p> <a href="/">Debian patch tracking system </a> </p> + <div class="breadcrumb"> + {% for crumb in crumbs %} + {{ crumb }} + {% endfor %} + </div> <!-- breadcrumb --> + </div> + {% block content %}{% endblock %} + <div class="pagefooter"> + page code/design/content is copyright (c) 2008 sean finney + <seanius@debian.org>. <br/> + patches viewed/retrieved through this system are copyrighted by + their respective authors. <br/> + <a href="http://git.debian.org/?p=users/seanius/patch-tracker.git"> + browse git repo + </a> + - + <a href="http://git.debian.org/git/users/seanius/patch-tracker.git"> + clone git repo + </a> + </div> <!-- pagefooter --> + </body> +</html> diff --git a/templates/package_vers.html b/templates/package_vers.html new file mode 100644 index 0000000..536aed0 --- /dev/null +++ b/templates/package_vers.html @@ -0,0 +1,121 @@ +{% extends "base.html" %} +{% block title %} +debian specific patch information for {{ pkg.name }} / {{ pkg.version }} +{% endblock %} +{% block content %} + <h1> + debian specific patch information for {{ pkg.name }} / {{ pkg.version }} + </h1> + <div class="diffsummary"> + <a name="diff-summary"></a> + <h2> Summary </h2> + <table class="summary"> + <tr> + <th>Package Version</th> + <th>Package Type</th> + <th>Source Package Format</th> + </tr> + <tr> + <td>{{ pkg.version }}</td> + <td>{{ pkg.type }}</td> + <td>{{ pkg.format }}</td> + </tr> + </table> + </div> <!-- diffsummary --> + +{% if pkg.debtar_name %} + <div class="debdiff"> + <a name="debian-tarball"></a> + <h2> Debian packaging Information </h2> + <table class="patchlisting"> + <tr> + <th>Debian changes tarfile</th> + <td colspan="2"> + <a href="{{ conf.archive_root_url }}/{{ pkg.loc }}/{{ pkg.debtar_name }}"> + {{ pkg.debtar_name }} + </a> + </td> + </tr> + <tr> + <th>Size</th><td colspan="2">{{ pkg.debtar_size }}</td> + </tr> + <tr> + <th>MD5sum</th><td colspan="2">{{ pkg.debtar_md5sum }}</td> + </tr> + </table> + </div> <!-- debdiff --> +{% endif %} +{% if pkg.diffgz_name %} + <div class="debdiff"> + <a name="debian-patches"></a> + <h2> Debian packaging Information </h2> + <table class="patchlisting"> + <tr> + <th>Diff file</th> + <td colspan="2"> + <a href="{{ conf.archive_root_url }}/{{ pkg.loc }}/{{ pkg.diffgz_name }}"> + {{ pkg.diffgz_name }} + </a> + </td> + </tr> + <tr> + <th>Size</th><td colspan="2">{{ pkg.diffgz_size }}</td> + </tr> + <tr> + <th>MD5sum</th><td colspan="2">{{ pkg.diffgz_md5sum }}</td> + </tr> + <tr> + <th>./debian only changes</th> + <td> + <a href="{{ conf.root_url }}/patch/debianonly/view/{{ pkg.name }}/{{ pkg.version }}">view</a> + </td> + <td> + <a href="{{ conf.root_url }}/patch/debianonly/dl/{{ pkg.name }}/{{ pkg.version }}">download</a> + </td> + </tr> + {% if pkg.diffgz_name and diffhandler.nondebiandir.lines %} + <tr> + <th>non packaging (i.e. not ./debian) changes</th> + <td> + <a href="{{ conf.root_url }}/patch/nondebian/view/{{ pkg.name }}/{{ pkg.version }}">view</a> + </td> + <td> + <a href="{{ conf.root_url }}/patch/nondebian/dl/{{ pkg.name }}/{{ pkg.version }}">download</a> + </td> + </tr> + {% endif %} + </table> + </div> <!-- debdiff --> +{% endif %} + +{% if pkg.diffgz_name or pkg.debtar_name %} + {% if diffhandler.series %} + <div class="debseries"> + <a name="series-patches"></a> + <h2> "series" style patches </h2> + <table class="patchlisting"> + <tr> + <th>patch</th> + <th>summary</th> + <th>view</th> + <th>raw</th> + </tr> + {% for name,patch in diffhandler.series.iterpatches %} + <tr> + <td>{{ name }}</td> + <td class="diffstat"><pre>{{ patch.diffstat }}</pre></td> + <td> + <a href="{{ conf.root_url }}/patch/series/view/{{ pkg.name }}/{{ pkg.version }}/{{ name }}">view</a> + </td> + <td> + <a href="{{ conf.root_url }}/patch/series/dl/{{ pkg.name }}/{{ pkg.version }}/{{ name }}">download</a> + </td> + </tr> + {% endfor %} + </table> + </div> <!-- debseries --> + {% endif %} +{% endif %} + + +{% endblock %} |