From 5f427dd38c8d47711ea73015076bb390761e05dd Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 26 Mar 2012 08:05:46 +0200 Subject: use repository and file classes --- data/templates/display.htm | 12 ++++++------ data/templates/exception.htm | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 data/templates/exception.htm (limited to 'data') 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 %} -

{{description}}

-

edit

-{% for file in files %} +

{{repo.getDescription}}

+

edit

+{% for file in repo.getFiles %}
-

{{file.filename}}

+

{{file.getFilename}}

- raw + raw

-
{{file.content}}
+
{{file.getContent}}
{% 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 @@ + + + + + Error - Phorkie + + +
+

Error

+

+ {{exception.getMessage}} +

+
+ + -- cgit v1.2.3