add vcs-git links to html head, to support autodiscovery apart from DOAP - http:...
authorChristian Weiske <cweiske@cweiske.de>
Tue, 18 Sep 2012 16:21:40 +0000 (18:21 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 18 Sep 2012 16:21:40 +0000 (18:21 +0200)
data/templates/display.htm

index 5bcb0162adcc1f49f1a4e81f18e97daef0d41934..799f94d669757ef33b6339c8342f64f493b2f517 100644 (file)
@@ -5,6 +5,12 @@
 
 {% block meta %}
 <link rel="meta" title="DOAP" type="application/rdf+xml" href="{{repo.getLink('doap')}}"/>
 
 {% block meta %}
 <link rel="meta" title="DOAP" type="application/rdf+xml" href="{{repo.getLink('doap')}}"/>
+{% if repo.getCloneURL(true) %}
+  <link rel="vcs-git" href="{{repo.getCloneURL(true)}}" title="{{repo.getTitle}} git repository"/>
+{% endif %}
+{% if repo.getCloneURL(false) %}
+  <link rel="vcs-git" href="{{repo.getCloneURL(false)}}" title="{{repo.getTitle}} git repository"/>
+{% endif %}
 {% endblock %}
 
 {% block content %}
 {% endblock %}
 
 {% block content %}