summaryrefslogtreecommitdiff
path: root/templates/themes/recent/recent.html
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-02-14 20:46:06 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-02-14 20:46:06 +1100
commit42abac99cf2b3a15871063243785a70de54adc5d (patch)
tree6ceecd21488ba344da400e47cad19db0dade80d9 /templates/themes/recent/recent.html
parent0b421167171ab29199dbd4732c5182aaec094e21 (diff)
recent theme: transition to Twig template files
Diffstat (limited to 'templates/themes/recent/recent.html')
-rw-r--r--templates/themes/recent/recent.html54
1 files changed, 54 insertions, 0 deletions
diff --git a/templates/themes/recent/recent.html b/templates/themes/recent/recent.html
new file mode 100644
index 00000000..d02cc183
--- /dev/null
+++ b/templates/themes/recent/recent.html
@@ -0,0 +1,54 @@
+{% filter remove_whitespace %}
+<!doctype html>
+<html>
+<head>
+ <title>{{ settings.title }}</title>
+ <link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}"/>
+ <link rel="stylesheet" media="screen" href="{{ config.root }}{{ settings.css }}"/>
+</head>
+<body>
+ {{ boardlist.top }}
+ <h1>{{ settings.title }}</h1>
+ <div class="title">{{ settings.subtitle }}</div>
+
+ <div class="box-wrap">
+ <div class="box left">
+ <h2>Recent Images</h2>
+ <ul>
+ {% for post in recent_images %}
+ <li>
+ <a href="{{ post.link }}">
+ <img src="{{ post.src }}" style="width:{{ post.thumbwidth }}px;height:{{ post.thumbheight }}px" alt="">
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ <div class="box right">
+ <h2>Latest Posts</h2>
+ <ul>
+ {% for post in recent_posts %}
+ <li>
+ <strong>{{ post.board_name }}</strong>:
+ <a href="{{ post.link }}">
+ {{ post.snippet }}
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ <div class="box right">
+ <h2>Stats</h2>
+ <ul>
+ <li>Total posts: {{ stats.total_posts }}</li>
+ <li>Unique posters: {{ stats.unique_posters }}</li>
+ <li>Active content: {{ stats.active_content|filesize }}</li>
+ </ul>
+ </div>
+ </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 %}