summaryrefslogtreecommitdiff
path: root/templates/themes/basic/index.html
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-02-08 09:08:13 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-02-08 09:08:13 +1100
commit658a7b43791921a06132ad5db8beacb33a6ef5dc (patch)
treef4665b881f1985aac29493c683148ed20bd7b081 /templates/themes/basic/index.html
parent3868004169decf757dfa3f29c8624e5c6e8e5715 (diff)
use Twig template for "basic" theme
Diffstat (limited to 'templates/themes/basic/index.html')
-rw-r--r--templates/themes/basic/index.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/themes/basic/index.html b/templates/themes/basic/index.html
new file mode 100644
index 00000000..f0dc0304
--- /dev/null
+++ b/templates/themes/basic/index.html
@@ -0,0 +1,35 @@
+{% filter remove_whitespace %}
+<!doctype html>
+<html>
+<head>
+ <title>{{ settings.title }}</title>
+ <link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}"/>
+</head>
+<body>
+ {{ boardlist.top }}
+ <h1>{{ settings.title }}</h1>
+ <div class="title">{{ settings.subtitle }}</div>
+
+ <div class="ban">
+ {% if news|count == 0 %}
+ <p style="text-align:center" class="unimportant">(No news to show.)</p>
+ {% else %}
+ {% for entry in news %}
+ <h2 id="{{ entry.id }}">
+ {% if entry.subject %}
+ {{ entry.subject }}
+ {% else %}
+ <em>no subject</em>
+ {% endif %}
+ <span class="unimportant"> &mdash; by {{ entry.name }} at {{ entry.time|date(config.post_date) }}</span>
+ </h2>
+ <p>{{ entry.body }}</p>
+ {% endfor %}
+ {% endif %}
+ </div>
+
+ <hr/>
+ <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> {{ config.version }} | <a href="http://tinyboard.org/">Tinyboard</a> Copyright &copy; 2010-2012 Tinyboard Development Group</p>
+</body>
+</html>
+{% endfilter %}