From 9ce0aa1ffc82b28b9b1c7cb44d19d8054e446144 Mon Sep 17 00:00:00 2001 From: Eevee Date: Sat, 5 Jun 2010 13:46:59 -0700 Subject: [PATCH 1/1] Wrap forum and thread lists in standard tables. --- splinext/forum/templates/css/forum.mako | 5 +++++ splinext/forum/templates/forum/forums.mako | 15 +++++++++++++-- splinext/forum/templates/forum/threads.mako | 14 +++++++++++--- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/splinext/forum/templates/css/forum.mako b/splinext/forum/templates/css/forum.mako index 0a26577..be6ace9 100644 --- a/splinext/forum/templates/css/forum.mako +++ b/splinext/forum/templates/css/forum.mako @@ -1,3 +1,8 @@ +table.forum-list { width: 100%; } +table.forum-list .name { text-align: left; } +table.forum-list td.name a { display: block; font-size: 1.5em; padding: 0.33em; } +table.forum-list .stats { width: 10em; text-align: center; } + .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; } diff --git a/splinext/forum/templates/forum/forums.mako b/splinext/forum/templates/forum/forums.mako index 24d59a8..d925e5b 100644 --- a/splinext/forum/templates/forum/forums.mako +++ b/splinext/forum/templates/forum/forums.mako @@ -2,10 +2,21 @@ <%def name="title()">Forums - +
+ + + + + + + + % for forum in c.forums: - + + + % endfor +
ForumVolumeActivity
${forum.name}${forum.name}xxxxxx
diff --git a/splinext/forum/templates/forum/threads.mako b/splinext/forum/templates/forum/threads.mako index a27d4f1..3add2ad 100644 --- a/splinext/forum/templates/forum/threads.mako +++ b/splinext/forum/templates/forum/threads.mako @@ -9,11 +9,19 @@ - +
+ + + + + + + % for thread in c.threads: - - + + % endfor +
ThreadPosts
${thread.subject}${thread.post_count}${thread.subject}${thread.post_count}
-- 2.7.4