use Date_HumanDiff from PEAR to display changelog times
[phorkie.git] / data / templates / display.htm
index 657561717d14192b05c9096204ab88b54074b67a..847a8ea9b6d0fd8c9ee68d6e95ae32d76f87a4ca 100644 (file)
@@ -1,19 +1,22 @@
 {% extends "base.htm" %}
-{% block title %}{{description}}{% endblock %}
+{% block title %}
+ {%if repo.getDescription %}
+  {{repo.getDescription}}
+ {%else%}
+  {{repo.id}}
+ {%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>{{file.getFilename}}</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 %}