minor improvements and bug fixes to stories
This commit is contained in:
@ -167,7 +167,6 @@ module.exports = function(app) {
|
|||||||
originalStoryLink: dashedName,
|
originalStoryLink: dashedName,
|
||||||
originalStoryAuthorEmail: story.author.email || '',
|
originalStoryAuthorEmail: story.author.email || '',
|
||||||
author: story.author,
|
author: story.author,
|
||||||
description: story.description,
|
|
||||||
rank: story.upVotes.length,
|
rank: story.upVotes.length,
|
||||||
upVotes: story.upVotes,
|
upVotes: story.upVotes,
|
||||||
id: story.id,
|
id: story.id,
|
||||||
|
@ -23,19 +23,18 @@ h3.row
|
|||||||
.col-xs-12.col-sm-12.col-md-6
|
.col-xs-12.col-sm-12.col-md-6
|
||||||
h4= storyMetaDescription
|
h4= storyMetaDescription
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
h4= description
|
.spacer
|
||||||
.negative-5
|
if !hasUserVoted
|
||||||
if !hasUserVoted
|
a#upvote.btn.btn-no-shadow.btn-primary.btn-xs.btn-primary-ghost Upvote
|
||||||
a#upvote.btn.btn-no-shadow.btn-primary.btn-xs.btn-primary-ghost Upvote
|
|
||||||
|  · 
|
|
||||||
else
|
|
||||||
a#upvote.btn.disabled.btn-no-shadow.btn-primary.btn-xs.btn-primary-ghost Upvoted!
|
|
||||||
|  · 
|
|
||||||
span#storyRank= rank + (rank > 1 ? " points" : " point")
|
|
||||||
|  · 
|
|  · 
|
||||||
span Posted #{timeAgo}
|
else
|
||||||
span  by 
|
a#upvote.btn.disabled.btn-no-shadow.btn-primary.btn-xs.btn-primary-ghost Upvoted!
|
||||||
a(href="/" + author.username) @#{author.username}
|
|  · 
|
||||||
|
span#storyRank= rank + (rank > 1 ? " points" : " point")
|
||||||
|
|  · 
|
||||||
|
span Posted #{timeAgo}
|
||||||
|
span  by 
|
||||||
|
a(href="/" + author.username) @#{author.username}
|
||||||
|
|
||||||
script.
|
script.
|
||||||
if (image) {
|
if (image) {
|
||||||
|
@ -45,10 +45,3 @@
|
|||||||
if (storyImage) {
|
if (storyImage) {
|
||||||
$('#image-display').removeClass('hidden-element');
|
$('#image-display').removeClass('hidden-element');
|
||||||
}
|
}
|
||||||
var text_max = 140;
|
|
||||||
$('#textarea_feedback').html(text_max + ' characters remaining');
|
|
||||||
$('#description-box').keyup(function () {
|
|
||||||
var text_length = $('#description-box').val().length;
|
|
||||||
var text_remaining = text_max - text_length;
|
|
||||||
$('#textarea_feedback').html(text_remaining + ' characters remaining');
|
|
||||||
});
|
|
||||||
|
Reference in New Issue
Block a user