From 6d0777840e50ce98f3d96629b4e92bbdccd3001c Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sun, 25 Mar 2012 21:08:29 +0200 Subject: first code that allows you to create pastes and view them --- data/config.default.php | 6 ++++++ data/templates/base.htm | 17 +++++++++++++++++ data/templates/display.htm | 16 ++++++++++++++++ data/templates/index.htm | 25 +++++++++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 data/templates/base.htm create mode 100644 data/templates/display.htm create mode 100644 data/templates/index.htm (limited to 'data') diff --git a/data/config.default.php b/data/config.default.php index e69de29..ec68622 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -0,0 +1,6 @@ + __DIR__ . '/../repos/', + 'tpl' => __DIR__ . '/templates/', +); +?> \ No newline at end of file diff --git a/data/templates/base.htm b/data/templates/base.htm new file mode 100644 index 0000000..f406f00 --- /dev/null +++ b/data/templates/base.htm @@ -0,0 +1,17 @@ + + + + + {% block title %}{% endblock %} - Phorkie + + + +
{% block content %}{% endblock %}
+ + \ No newline at end of file diff --git a/data/templates/display.htm b/data/templates/display.htm new file mode 100644 index 0000000..1f33b61 --- /dev/null +++ b/data/templates/display.htm @@ -0,0 +1,16 @@ +{% extends "base.htm" %} +{% block title %}{{description}}{% endblock %} + +{% block content %} +

{{description}}

+

edit

+{% for file in files %} +
+

{{file.filename}}

+

+ raw +

+
{{file.content}}
+
+{% endfor %} +{% endblock %} diff --git a/data/templates/index.htm b/data/templates/index.htm new file mode 100644 index 0000000..eea509b --- /dev/null +++ b/data/templates/index.htm @@ -0,0 +1,25 @@ + +
+

+ + +

+

+ + +

+

+ + +

+

+ +

+

+ +

+
\ No newline at end of file -- cgit v1.2.3