From 065583a8b31f73b9e6cfdfa6e8be0bfd6077984d Mon Sep 17 00:00:00 2001 From: Eevee Date: Tue, 1 Jun 2010 23:41:10 -0700 Subject: [PATCH] Barebones styling. Very much so. Ugly. --- splinext/forum/templates/css/forum.mako | 5 +++++ splinext/forum/templates/forum/posts.mako | 6 ++++++ splinext/forum/templates/forum/threads.mako | 1 + 3 files changed, 12 insertions(+) diff --git a/splinext/forum/templates/css/forum.mako b/splinext/forum/templates/css/forum.mako index e69de29..0a26577 100644 --- a/splinext/forum/templates/css/forum.mako +++ b/splinext/forum/templates/css/forum.mako @@ -0,0 +1,5 @@ +.forum-post-container { } +.forum-post { position: relative; margin: 1em 0; padding: 1em; background: #d0d8ff; -moz-border-radius: 1em; -webkit-border-radius: 1em; } +.forum-post .author { position: absolute; top: 0; right: 0; bottom: 0; width: 16em; padding: 0.5em; background: #c0c8ff; -moz-border-radius-topright: 1em; -moz-border-radius-bottomright: 1em; -webkit-border-top-right-radius: 1em; -webkit-border-bottom-right-radius: 1em; } +.forum-post .meta { margin-right: 17em; padding-bottom: 0.5em; padding-right: 0.5em; border-bottom: 1px dotted navy; } +.forum-post .content { margin-right: 16.5em; padding-top: 0.5em; padding-right: 0.5em; } diff --git a/splinext/forum/templates/forum/posts.mako b/splinext/forum/templates/forum/posts.mako index 19aac8a..e4d3ffc 100644 --- a/splinext/forum/templates/forum/posts.mako +++ b/splinext/forum/templates/forum/posts.mako @@ -5,6 +5,12 @@
% for post in c.thread.posts:
+
+ ${post.author.name} +
+
+ +
${post.content}
% endfor diff --git a/splinext/forum/templates/forum/threads.mako b/splinext/forum/templates/forum/threads.mako index 21468ed..a6b3f73 100644 --- a/splinext/forum/templates/forum/threads.mako +++ b/splinext/forum/templates/forum/threads.mako @@ -6,6 +6,7 @@ % for thread in c.threads: ${thread.subject} + ${thread.post_count} % endfor -- 2.7.4