use repository and file classes
[phorkie.git] / data / templates / display.htm
index 1f33b61ae1a67a1c285c81e1e7ee2339cd4c1fe4..ea2e2cd8a69f827ca4bb8b4e755a69d7bce13657 100644 (file)
@@ -2,15 +2,15 @@
 {% block title %}{{description}}{% endblock %}
 
 {% block content %}
 {% block title %}{{description}}{% endblock %}
 
 {% block content %}
-<h1>{{description}}</h1>
-<p><a href="{{links.edit}}">edit</a></p>
-{% for file in files %}
+<h1>{{repo.getDescription}}</h1>
+<p><a href="{{repo.getLink('edit')}}">edit</a></p>
+{% for file in repo.getFiles %}
 <div>
 <div>
- <h2>{{file.filename}}</h2>
+ <h2>{{file.getFilename}}</h2>
  <p>
  <p>
-  <a href="{{file.raw}}">raw</a>
+  <a href="{{file.getLink('raw')}}">raw</a>
  </p>
  </p>
- <pre>{{file.content}}</pre>
+ <pre>{{file.getContent}}</pre>
 </div>
 {% endfor %}
 {% endblock %}
 </div>
 {% endfor %}
 {% endblock %}