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 | |
| parent | 6d0777840e50ce98f3d96629b4e92bbdccd3001c (diff) | |
| download | phorkie-5f427dd38c8d47711ea73015076bb390761e05dd.tar.gz phorkie-5f427dd38c8d47711ea73015076bb390761e05dd.zip | |
use repository and file classes
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/display.htm | 12 | ||||
| -rw-r--r-- | data/templates/exception.htm | 15 |
2 files changed, 21 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 %} diff --git a/data/templates/exception.htm b/data/templates/exception.htm new file mode 100644 index 0000000..805342a --- /dev/null +++ b/data/templates/exception.htm @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <!--<link rel="stylesheet" href="phorkie.css" />--> + <title>Error - Phorkie</title> + </head> + <body> + <article> + <h1>Error</h1> + <p> + {{exception.getMessage}} + </p> + </article> + </body> +</html> |
