summaryrefslogtreecommitdiff
path: root/templates/wiki
diff options
context:
space:
mode:
Diffstat (limited to 'templates/wiki')
-rw-r--r--templates/wiki/base.html30
-rw-r--r--templates/wiki/edit.html22
-rw-r--r--templates/wiki/home.html9
-rw-r--r--templates/wiki/page.html17
4 files changed, 78 insertions, 0 deletions
diff --git a/templates/wiki/base.html b/templates/wiki/base.html
new file mode 100644
index 00000000..90d93156
--- /dev/null
+++ b/templates/wiki/base.html
@@ -0,0 +1,30 @@
+<html>
+<head>
+ <style type='text/css'>
+body {
+ background: #333;
+ color: #ddd;
+}
+
+a {
+ color: #fff;
+}
+
+div.body {
+ padding: 25px;
+ margin: 15px;
+ background: #444;
+}
+
+div.controls {
+ padding: 20px;
+}
+ </style>
+<title>{% block title %}{% endblock %}</title>
+</head>
+<body>
+{% block content %}
+<h1>This is the base template. Extend it with the "extends" template tag.</h1>
+{% endblock %}
+</body>
+</html> \ No newline at end of file
diff --git a/templates/wiki/edit.html b/templates/wiki/edit.html
new file mode 100644
index 00000000..421a313f
--- /dev/null
+++ b/templates/wiki/edit.html
@@ -0,0 +1,22 @@
+{% extends "base.html" %}
+{% block content %}
+<div class="greybox">
+ <div style="float:right;font-size:x-small">
+ <a href="http://daringfireball.net/projects/markdown/syntax/">Wiki Syntax</a>
+ </div>
+ <h2 class="title">Editing: {{ page.title }}</h2>
+ <form action="." method="post">
+ <input name="title" value="{{ page.title }}" />
+ <br /><br />
+ <textarea name="content" cols="100" rows="32">{{ page.content }}</textarea>
+ <br /><br />
+ <input type="submit" value="Save" />
+ </form>
+ <!--
+ <form action="/wiki/delete/" method="post">
+ <input type="hidden" name="title" value="{{ page.title }}" />
+ <input type="submit" value="Delete" />
+ </form>
+ -->
+</div>
+{% endblock %}
diff --git a/templates/wiki/home.html b/templates/wiki/home.html
new file mode 100644
index 00000000..6c0fb6ef
--- /dev/null
+++ b/templates/wiki/home.html
@@ -0,0 +1,9 @@
+{% extends "base.html" %}
+{% block content %}
+<div class="box">
+ <h2 class="title">Wiki Index</h2>
+{% for page in pages %}
+ <h3><a href='{{ page.title }}/'>{{ page.title }}</a></h3>
+{% endfor %}
+</div>
+{% endblock %}
diff --git a/templates/wiki/page.html b/templates/wiki/page.html
new file mode 100644
index 00000000..e0e6ddd9
--- /dev/null
+++ b/templates/wiki/page.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+{% load wikitags %}
+{% block content %}
+<div class="box">
+ <h1 class="wiki">{{ page.title }}</h1>
+ <div class="wikibody">
+{{ page.content|wikify }}
+ </div>
+
+ <div class="wikifoot_r">
+ <a href='{{ page.editurl }}'>Edit this page</a> | <a href='/wiki/'>Wiki Index</a>
+ </div>
+ <div class="wikifoot_l">
+ Last Author: {{ page.last_author.username }}
+ </div>
+</div>
+{% endblock %}