From 930a75c045dbc9ac099b76602a3a9d768da2f942 Mon Sep 17 00:00:00 2001 From: Suraj Date: Mon, 15 Feb 2016 09:40:35 +0530 Subject: [PATCH] Updated comments & schema DDL --- public/static/css/styles.css | 11 ++++++++++- schema.sql | 2 ++ templates/home.html | 14 ++++++-------- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/public/static/css/styles.css b/public/static/css/styles.css index c8c2489..2f916ef 100644 --- a/public/static/css/styles.css +++ b/public/static/css/styles.css @@ -13,6 +13,15 @@ Notes: omninotesweb /*-------------------------------------- Layout -------------------------------------- */ + +.commentslist { + background-color: #f5f5f5; +} + +.comment { + padding-left: 25px; + padding-top: 5px; +} ul{ list-style-type: none; } @@ -325,7 +334,7 @@ Media Queries float:right; margin-top: 10px; } - + body{ margin-top:105px; diff --git a/schema.sql b/schema.sql index da880f1..5fb17c3 100644 --- a/schema.sql +++ b/schema.sql @@ -11,3 +11,5 @@ finish_date timestamp CREATE TABLE files(name varchar(1000) not null, autoName varchar(255) not null); CREATE TABLE category( id integer primary key autoincrement ,name varchar(1000) not null); + +CREATE TABLE comments(id integer primary key autoincrement, content ntext, taskID references task(id)); diff --git a/templates/home.html b/templates/home.html index f501427..a560abe 100644 --- a/templates/home.html +++ b/templates/home.html @@ -54,21 +54,19 @@ {{$value.Content}} - -
    +
    {{range $value.Comments}} -
  • {{.Content}}
  • +
    {{.Content}}
    {{end}} -
  • +
    - +
    -
  • -
-
+ +