diff options
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> |
