Barebones styling. Very much so. Ugly. veekun-promotions/2010060201 veekun-promotions/2010060501
authorEevee <git@veekun.com>
Wed, 2 Jun 2010 06:41:10 +0000 (23:41 -0700)
committerEevee <git@veekun.com>
Wed, 2 Jun 2010 06:41:10 +0000 (23:41 -0700)
splinext/forum/templates/css/forum.mako
splinext/forum/templates/forum/posts.mako
splinext/forum/templates/forum/threads.mako

index e69de29..0a26577 100644 (file)
@@ -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; }
index 19aac8a..e4d3ffc 100644 (file)
@@ -5,6 +5,12 @@
 <div class="forum-post-container">
     % for post in c.thread.posts:
     <div class="forum-post">
+        <div class="author">
+            ${post.author.name}
+        </div>
+        <div class="meta">
+            <time>${post.posted_time}</time>
+        </div>
         <div class="content">${post.content}</div>
     </div>
     % endfor
index 21468ed..a6b3f73 100644 (file)
@@ -6,6 +6,7 @@
     % for thread in c.threads:
     <tr>
         <td><a href="${url(controller='forum', action='posts', forum_id=c.forum.id, thread_id=thread.id)}">${thread.subject}</a></td>
+        <td>${thread.post_count}</td>
     </tr>
     % endfor
 </table>