From c30c03312041c24c39b6a986882aae6189096c2f Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 26 Oct 2012 12:51:42 +0000 Subject: Add URL and SCM data to projects This allows us to display friendly links to the project website, web SCM UI and SCM URL. For example for the patchwork project these could be set to: web_url: http://jk.ozlabs.org/projects/patchwork/ scm_url: git://ozlabs.org/home/jk/git/patchwork webscm_url: http://git.ozlabs.org/?p=patchwork;a=tree Requires a DB schema upgrade Signed-off-by: Simo Sorce Signed-off-by: Jeremy Kerr --- templates/patchwork/project.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'templates') diff --git a/templates/patchwork/project.html b/templates/patchwork/project.html index 2d63d1d..5b2cc13 100644 --- a/templates/patchwork/project.html +++ b/templates/patchwork/project.html @@ -28,6 +28,24 @@ Patch count {{n_patches}} (+ {{n_archived_patches}} archived) +{% if project.web_url %} + + Website + {{project.web_url}} + +{% endif %} +{% if project.webscm_url %} + + Source Code Web Interface + {{project.webscm_url}} + +{% endif %} +{% if project.scm_url %} + + Source Code Manager URL + {{project.scm_url}} + +{% endif %} {% if settings.ENABLE_XMLRPC %} -- cgit v1.2.3