From a16f72e11c5ed0e8c892e163416e605705dc701c Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 24 Apr 2013 22:24:20 +0000 Subject: [PATCH] redis - added mget and multi, finished initial topics listview on home page, finished get topics method calls --- public/templates/header.tpl | 27 +++++++++++++++- public/templates/home.tpl | 11 +++++-- src/redis.js | 10 ++++++ src/templates.js | 2 +- src/topics.js | 61 ++++++++++++++++++++++++++++++++++--- src/webserver.js | 8 ++--- 6 files changed, 106 insertions(+), 13 deletions(-) diff --git a/public/templates/header.tpl b/public/templates/header.tpl index 9b3fa01468..8d6f9fa6b4 100644 --- a/public/templates/header.tpl +++ b/public/templates/header.tpl @@ -42,7 +42,7 @@ height: 350px; left: 0px; bottom: 0px; - opacity: 0.8; + background: white; } #post_window input { @@ -68,15 +68,40 @@ } #post_window .post-title-container { + opacity: 0.8; height: 50px; } #post_window .post-content-container { + opacity: 0.8; background: #000; width: 100%; height: 300px; } + + .topic-container { + list-style-type: none; + padding: 0; + margin: 0; + border: 1px solid #eee; + margin-top: 50px; + } + .topic-container li.topic-row:nth-child(odd) { + background-color:#fdfdfd; + } + .topic-container li.topic-row:nth-child(even) { + background-color:#fff; + } + .topic-container li.topic-row { + cursor: pointer; + border-bottom: 1px solid #eee; + padding: 10px; + + } + .topic-container li.topic-row:hover { + background-color: #eee; + } diff --git a/public/templates/home.tpl b/public/templates/home.tpl index ae29dc4787..35b4880009 100644 --- a/public/templates/home.tpl +++ b/public/templates/home.tpl @@ -1,5 +1,12 @@ - +