From b8fb70d44e85c58c245cfe89870455d67732dd6c Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sat, 17 Aug 2013 20:35:15 +0200 Subject: [PATCH] Visual changes to the spv. --- .../single_post_content_view.js | 7 ++- .../stylesheets/single-post-view.css.sass | 25 ++++++++ .../single-post-actions_tpl.jst.hbs | 8 +-- .../single-post-content_tpl.jst.hbs | 12 ++-- .../single-post-interactions_tpl.jst.hbs | 57 ++++++++++--------- 5 files changed, 71 insertions(+), 38 deletions(-) diff --git a/app/assets/javascripts/app/views/single-post-viewer/single_post_content_view.js b/app/assets/javascripts/app/views/single-post-viewer/single_post_content_view.js index c04d63dd7..913375f0a 100644 --- a/app/assets/javascripts/app/views/single-post-viewer/single_post_content_view.js +++ b/app/assets/javascripts/app/views/single-post-viewer/single_post_content_view.js @@ -5,7 +5,8 @@ app.views.SinglePostContent = app.views.Base.extend({ "#single-post-actions" : "singlePostActionsView", '#real-post-content' : 'postContentView', ".oembed" : "oEmbedView", - ".opengraph" : "openGraphView" + ".opengraph" : "openGraphView", + ".status-message-location" : "postLocationStreamView" }, initialize : function() { @@ -15,6 +16,10 @@ app.views.SinglePostContent = app.views.Base.extend({ this.postContentView = new app.views.StatusMessage({model: this.model}); }, + postLocationStreamView : function(){ + return new app.views.LocationStream({ model : this.model}); + }, + presenter : function() { return _.extend(this.defaultPresenter(), { authorIsCurrentUser : this.authorIsCurrentUser(), diff --git a/app/assets/stylesheets/single-post-view.css.sass b/app/assets/stylesheets/single-post-view.css.sass index 1559c251c..038b0c76f 100644 --- a/app/assets/stylesheets/single-post-view.css.sass +++ b/app/assets/stylesheets/single-post-view.css.sass @@ -1,11 +1,26 @@ #single-post-container padding-top: 20px #single-post-content + #head + color: #aaa + font-size: 12px #author .bd padding-left: 10px border-right: solid 1px #ccc padding-right: 10px + #body + margin-left: 20px + padding-top: 20px + .photo_attachments + padding-bottom: 10px + img + display: block + margin-left: auto + margin-right: auto + padding-bottom: 5px + max-width: 90% + #single-post-interactions #likes, #reshares, #comments-meta padding-bottom: 5px @@ -13,4 +28,14 @@ border-bottom: solid 1px #ccc padding-top: 10px padding-bottom: 10px + p + margin: 0 + textarea + width: 95% + a + color: #3f8fba + .timeago + color: #aaaaaa + text-decoration: none + font-size: smaller diff --git a/app/assets/templates/single-post-viewer/single-post-actions_tpl.jst.hbs b/app/assets/templates/single-post-viewer/single-post-actions_tpl.jst.hbs index cd4609447..6dd66978b 100644 --- a/app/assets/templates/single-post-viewer/single-post-actions_tpl.jst.hbs +++ b/app/assets/templates/single-post-viewer/single-post-actions_tpl.jst.hbs @@ -3,20 +3,20 @@