From d7edde2a194ad39d4f9635b8a27127256c527e87 Mon Sep 17 00:00:00 2001 From: Michael Q Larson Date: Mon, 9 Mar 2015 00:27:17 -0700 Subject: [PATCH] fix the casing of the views and a minor Jade warn statement --- models/Story.js | 11 +---------- views/stories/hot-stories.jade | 2 +- views/stories/new-stories.jade | 2 +- views/stories/search-stories.jade | 2 +- views/stories/show.jade | 2 +- 5 files changed, 5 insertions(+), 14 deletions(-) diff --git a/models/Story.js b/models/Story.js index 59a455b63d..541bc09169 100644 --- a/models/Story.js +++ b/models/Story.js @@ -41,13 +41,4 @@ var storySchema = new mongoose.Schema({ } }); -module.exports = mongoose.model('Story', storySchema); - -/* - author: { - userId: { - type: mongoose.Schema.Types.ObjectId, - ref: 'User' - } - }, - */ +module.exports = mongoose.model('Story', storySchema); \ No newline at end of file diff --git a/views/stories/hot-stories.jade b/views/stories/hot-stories.jade index 7839ef1204..e71118b6f9 100644 --- a/views/stories/hot-stories.jade +++ b/views/stories/hot-stories.jade @@ -34,7 +34,7 @@ "
" + "
" + "" - + data[i].storyLink + + + data[i].headline + "" + "
" + "
" + diff --git a/views/stories/new-stories.jade b/views/stories/new-stories.jade index 6c95274db9..f89f5b5b13 100644 --- a/views/stories/new-stories.jade +++ b/views/stories/new-stories.jade @@ -34,7 +34,7 @@ "
" + "
" + "" - + data[i].storyLink + + + data[i].headline + "" + "
" + "
" + diff --git a/views/stories/search-stories.jade b/views/stories/search-stories.jade index 9574bf4b9f..15672bdb5e 100644 --- a/views/stories/search-stories.jade +++ b/views/stories/search-stories.jade @@ -4,7 +4,7 @@ .input-group input#searchArea.big-text-field.field-responsive.form-control(type='text', placeholder='Search our stories', autofocus) span.input-group-btn - button.disabled#searchbutton.btn.btn-big.btn-primary.btn-responsive(type='button') Search + button#searchbutton.btn.btn-big.btn-primary.btn-responsive(type='button') Search .spacer #story-list diff --git a/views/stories/show.jade b/views/stories/show.jade index fe36f3c7f7..9fb166687b 100644 --- a/views/stories/show.jade +++ b/views/stories/show.jade @@ -30,7 +30,7 @@ .negative-5 span Posted #{timeAgo} span  by  - a(href="/" + author.username)@#{author.username} + a(href="/" + author.username) @#{author.username} |  ยท  a#reply-to-main-post Reply .col-xs-12#reply-area