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

login
register
mail settings
Submitter Simo Sorce
Date Oct. 26, 2012, 10:51 p.m.
Message ID <1351291904-16251-3-git-send-email-idra@samba.org>
Download mbox | patch
Permalink /patch/194574/
State Accepted
Headers show

Comments

Simo Sorce - Oct. 26, 2012, 10:51 p.m.
Allows the casual visitor to check out what all these projects
actually are.

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

Patch

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 %}