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 5bcb016..799f94d 100644 (file)
@@ -5,6 +5,12 @@
 
 {% 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 %}