diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-03-26 08:05:46 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-03-26 08:05:46 +0200 |
| commit | 5f427dd38c8d47711ea73015076bb390761e05dd (patch) | |
| tree | 023a342befae896020e60581d7efaa91abcdcba4 /data/templates/display.htm | |
| parent | 6d0777840e50ce98f3d96629b4e92bbdccd3001c (diff) | |
| download | phorkie-5f427dd38c8d47711ea73015076bb390761e05dd.tar.gz phorkie-5f427dd38c8d47711ea73015076bb390761e05dd.zip | |
use repository and file classes
Diffstat (limited to 'data/templates/display.htm')
| -rw-r--r-- | data/templates/display.htm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/data/templates/display.htm b/data/templates/display.htm index 1f33b61..ea2e2cd 100644 --- a/data/templates/display.htm +++ b/data/templates/display.htm @@ -2,15 +2,15 @@ {% 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> - <h2>{{file.filename}}</h2> + <h2>{{file.getFilename}}</h2> <p> - <a href="{{file.raw}}">raw</a> + <a href="{{file.getLink('raw')}}">raw</a> </p> - <pre>{{file.content}}</pre> + <pre>{{file.getContent}}</pre> </div> {% endfor %} {% endblock %} |
