[PATCH 2/3] Add link to the projects website in the projects view

Simo Sorce idra at samba.org
Sat Oct 27 09:51:43 EST 2012


Allows the casual visitor to check out what all these projects
actually are.

Signed-off-by: Simo Sorce <idra at samba.org>
---
 templates/patchwork/projects.html | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/templates/patchwork/projects.html b/templates/patchwork/projects.html
index aa6df82865bfb9d801e575ec6a61eaba4557c581..f871e69a1ba25134ecd0e71de19c943a830c0e2a 100644
--- a/templates/patchwork/projects.html
+++ b/templates/patchwork/projects.html
@@ -10,8 +10,13 @@
  {% for p in projects %}
   <dt>
    <a href="{% url patchwork.views.patch.list project_id=p.linkname %}"
-    >{{p.linkname}}</a></dt>
-  <dd>{{p.name}}</dd>
+    >{{p.linkname}}</a>
+  </dt>
+  <dd>{{p.name}}
+{% if p.website %}
+   (<a href="{{p.website}}">website</a>)
+{% endif %}
+  </dd>
  {% endfor %}
  </dl>
 {% else %}
-- 
1.7.11.4



More information about the Patchwork mailing list