Merge remote-tracking branch 'jnovack/markdown'
[phorkie.git] / data / templates / display.htm
index afdc75c72b55ebb3c8aef351fa98fe421b88143d..799f94d669757ef33b6339c8342f64f493b2f517 100644 (file)
@@ -1,19 +1,28 @@
 {% 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 %}
-<h1>{{repo.getDescription}}</h1>
-<ul class="links">
- <li><a href="{{repo.getLink('edit')}}">edit</a></li>
- <li><a href="{{repo.getLink('fork')}}">fork</a></li>
-</ul>
+ {% include 'display-head.htm' %}
+
 {% for file in repo.getFiles %}
-<div>
- <h2 id="{{file.getFilename}}">{{file.getFilename}}<a class="anchorlink" href="#{{file.getFilename}}"></a></h2>
- <p>
-  <a href="{{file.getLink('raw')}}">raw</a>
- </p>
- {{file.getHighlightedContent|raw}}
-</div>
+ {% include 'display-file.htm' %}
 {% endfor %}
+
+ {% include 'display-foot.htm' %}
+{% endblock %}
+
+{% block sidebar %}
+ {% include 'display-sidebar-history.htm' %}
 {% endblock %}