summaryrefslogtreecommitdiffstats
path: root/templates/devel
diff options
context:
space:
mode:
Diffstat (limited to 'templates/devel')
-rw-r--r--templates/devel/index.html75
-rw-r--r--templates/devel/profile.html32
2 files changed, 107 insertions, 0 deletions
diff --git a/templates/devel/index.html b/templates/devel/index.html
new file mode 100644
index 0000000..2617de9
--- /dev/null
+++ b/templates/devel/index.html
@@ -0,0 +1,75 @@
+{% extends "base.html" %}
+
+{% block content %}
+ {% if todos %}
+ <div class="greybox">
+ <h3 class="title">Package ToDo Lists</h3>
+ <table class="results" width="100%">
+ <tr>
+ <th>Name</th>
+ <th>Creation Date</th>
+ <th>Description</th>
+ </tr>
+ {% for todo in todos %}
+ <tr>
+ <td style="white-space:nowrap"><a href="/todo/{{ todo.id }}/">{{ todo.name }}</a></td>
+ <td>{{ todo.date_added }}</td>
+ <td>{{ todo.description }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+ <br /><br />
+ {% endif %}
+
+ <div class="greybox">
+ <h3 class="title">Flagged Package Stats</h3>
+ <table class="results" width="100%">
+ <tr>
+ <th>Maintainer</th>
+ <th># Package</th>
+ <th># Flagged</th>
+ </tr>
+ {% for maint in stats %}
+ <tr>
+ <td><a href="/packages/?maint={{ maint.0.id }}">{{ maint.0.get_full_name }}</a></td>
+ <td><strong>{{ maint.1 }}</strong> packages</td>
+ <td><strong>{{ maint.2 }}</strong> packages</td>
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+ <br /><br />
+
+ <div class="box">
+ <h3 class="title">Package Maintenance</h3>
+ <br />
+ <table width="100%">
+ <tr>
+ <td style="vertical-align: top">
+ {% if maint %}
+ <a href="/packages/?maint={{ maint.id }}">My Packages</a><br />
+ {% endif %}
+ <a href="/packages/?maint=0">Orphan Packages</a><br />
+ <br />
+ <a href="/devel/guide/">Package Maintainer's Guide</a><br />
+ </td><td style="vertical-align: top">
+ {% if pkgs %}
+ <h4>My Flagged Packages:</h4>
+ <ul class="small">
+ <li><form method="post" action="/devel/notify/">
+ <input name="notify" type="checkbox" value="yes"{% if maint.get_profile.notify %} checked{% endif %} /> Notify me when packages are flagged
+ &nbsp; &nbsp;
+ <input type="submit" value="Update" />
+ </form></li>
+ </ul>
+ <ul class="small">
+ {% for pkg in pkgs %}
+ <li><a href="/packages/{{ pkg.id }}/">{{ pkg.repo.name }}::{{ pkg.pkgname }} {{ pkg.pkgver }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ </td>
+ </tr>
+ </table>
+{% endblock %}
diff --git a/templates/devel/profile.html b/templates/devel/profile.html
new file mode 100644
index 0000000..6083735
--- /dev/null
+++ b/templates/devel/profile.html
@@ -0,0 +1,32 @@
+{% load validation %}
+{% extends "base.html" %}
+
+{% block content %}
+ <div class="greybox">
+ <h2 class="title">Developer Profile</h2>
+ {% if errors %}
+ {% print_errors errors %}
+ {% endif %}
+ <form method="post" action=".">
+ <table>
+ <tr>
+ <td>Username:</td>
+ <td><strong>{{ user.username }}</strong></td>
+ </tr><tr>
+ <td>Email Address:</td>
+ <td><input type="text" name="email" value="{{ user.email }}" size="30"></td>
+ </tr><tr>
+ <td>New Password:</td>
+ <td><input type="password" name="passwd" size="30"></td>
+ </tr><tr>
+ <td>Confirm Password:</td>
+ <td><input type="password" name="passwd2" size="30"></td>
+ </tr><tr>
+ <td colspan="2" align="right">
+ <input type="submit" value=" Save ">
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+{% endblock %}