summaryrefslogtreecommitdiffstats
path: root/patchwork/templates/patchwork/projects.html
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-05-24 16:57:33 +0800
committerJeremy Kerr <jk@ozlabs.org>2015-05-27 10:26:41 +0800
commitad2762cf775a8dde508de47164d6429f3fd724f1 (patch)
treee63015a468cfe32c961908f0338d423227799815 /patchwork/templates/patchwork/projects.html
parentf09e982f58384946111d4157fd2b7c2b31b78612 (diff)
downloadpatchwork-ad2762cf775a8dde508de47164d6429f3fd724f1.tar.bz2
patchwork-ad2762cf775a8dde508de47164d6429f3fd724f1.tar.xz
Move to a more recent django project structure
This change updates patchwor to the newer project struture: we've moved the actual application out of the apps/ directory, and the patchwork-specific templates to under the patchwork application. This gives us the manage.py script in the top-level now. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'patchwork/templates/patchwork/projects.html')
-rw-r--r--patchwork/templates/patchwork/projects.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/patchwork/templates/patchwork/projects.html b/patchwork/templates/patchwork/projects.html
new file mode 100644
index 0000000..8c727ad
--- /dev/null
+++ b/patchwork/templates/patchwork/projects.html
@@ -0,0 +1,27 @@
+{% extends "base.html" %}
+
+{% block title %}Project List{% endblock %}
+{% block heading %}Project List{% endblock %}
+
+{% block body %}
+
+{% if projects %}
+ <div class="project-set">
+ {% for p in projects %}
+ <div class="project">
+ <h2 class="project-title">
+ <a href="{% url 'patchwork.views.patch.list' project_id=p.linkname %}"
+ >{{p.linkname}}</a>
+ </h2>
+ <div class="project-name">{{p.name}}</div>
+{% if p.web_url %}
+ <div class="project-url"><a href="{{p.web_url}}">website</a></div>
+{% endif %}
+ </div>
+ {% endfor %}
+ </div>
+{% else %}
+ <p>Patchwork doesn't have any projects to display!</p>
+{% endif %}
+
+{% endblock %}