remote forking: use the original http/https url in description
[phorkie.git] / data / templates / display.htm
index cabff593b883e602ecba6d7abb0c50d54408687b..799f94d669757ef33b6339c8342f64f493b2f517 100644 (file)
@@ -1,30 +1,28 @@
 {% extends "base.htm" %}
 {% extends "base.htm" %}
-{% block title %}{{description}}{% endblock %}
+{% block title %}
+ {{repo.getTitle}}
+{% endblock %}
+
+{% 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 %}
 
 {% block content %}
-<h1>{{repo.getDescription}}</h1>
-<div class="row-fluid">
- <div class="span6">
-  <a class="btn" href="{{repo.getLink('edit')}}"><i class="icon-edit"></i> edit</a>
- </div>
- <div class="span6" style="text-align: right">
-  <a class="btn" href="{{repo.getLink('fork')}}"><i class="icon-share"></i> fork</a>
- </div>
-</div>
+ {% include 'display-head.htm' %}
 
 {% for file in repo.getFiles %}
 
 {% for file in repo.getFiles %}
-<div class="file">
- <div class="header">
-  <a class="btn btn-mini" href="{{file.getLink('raw')}}" style="float: right;">raw</a>
-  <h3 id="{{file.getFilename}}">{{file.getFilename}}<a class="anchorlink" href="#{{file.getFilename}}"></a></h3>
- </div>
- <div class="code">
-  {{file.getHighlightedContent|raw}}
- </div>
-</div>
+ {% include 'display-file.htm' %}
 {% endfor %}
 {% endfor %}
+
+ {% include 'display-foot.htm' %}
 {% endblock %}
 
 {% block sidebar %}
 {% endblock %}
 
 {% block sidebar %}
-sidebar FIXME
-{% endblock %}
\ No newline at end of file
+ {% include 'display-sidebar-history.htm' %}
+{% endblock %}