From 97f1c286f47df382ff8067514575ade86c7f24f4 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Fri, 31 Jan 2014 01:00:09 +0100 Subject: [PATCH] improve reshared posts --- Changelog.md | 1 + .../single-post-viewer/single_post_actions.js | 1 - .../single_post_content_view.js | 1 + .../stylesheets/single-post-view.css.scss | 54 +++++--- app/assets/templates/feedback_tpl.jst.hbs | 2 +- .../single-post-content_tpl.jst.hbs | 128 ++++++++++-------- config/locales/javascript/javascript.en.yml | 1 + 7 files changed, 110 insertions(+), 78 deletions(-) diff --git a/Changelog.md b/Changelog.md index 4ff382dfe..30d883b95 100644 --- a/Changelog.md +++ b/Changelog.md @@ -3,6 +3,7 @@ ## Refactor * Drop number of followers from tags page [#4717](https://github.com/diaspora/diaspora/issues/4717) * Remove some unused beta code [#4738](https://github.com/diaspora/diaspora/issues/4738) +* Style improvements for SPV, use original author's avatar for reshares [#4754](https://github.com/diaspora/diaspora/issue/4754) ## Bug fixes * Improve time agos by updating the plugin [#4280](https://github.com/diaspora/diaspora/issues/4280) diff --git a/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js b/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js index 7e066389c..eebd39327 100644 --- a/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js +++ b/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js @@ -1,6 +1,5 @@ app.views.SinglePostActions = app.views.Feedback.extend({ templateName: "single-post-viewer/single-post-actions", - tooltipSelector: "time", events: function() { return _.defaults({ 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 155ebda80..19545b84e 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 @@ -1,5 +1,6 @@ app.views.SinglePostContent = app.views.Base.extend({ templateName: 'single-post-viewer/single-post-content', + tooltipSelector: "time, .post_scope", subviews : { "#single-post-actions" : "singlePostActionsView", diff --git a/app/assets/stylesheets/single-post-view.css.scss b/app/assets/stylesheets/single-post-view.css.scss index afb061e2d..075867ea8 100644 --- a/app/assets/stylesheets/single-post-view.css.scss +++ b/app/assets/stylesheets/single-post-view.css.scss @@ -4,14 +4,15 @@ #single-post-content { #head { - padding-bottom: 5px; + padding-bottom: 10px; border-bottom: 1px solid $border-grey; #post-info { + .author{ color: $grey; } .info { - color: $text-grey; + color: lighten($text-grey,10%); font-size: 12px; - .post-time { color: $grey; } - i { margin-right: 5px; } + .post-time a { color: $grey; } + .post_scope { margin-right: 5px; } .status-message-location { padding-top: 2px; line-height: 14px; @@ -23,25 +24,38 @@ .bd { padding-left: 10px; } - .retweet { - color: $grey; - line-height: 14px; - padding-top: 2px; - i { - font-size: 28px; - line-height: 28px; - } - .post-time { display: block; } - .avatar { - height: 28px; - width: 28px; - } + } + .reshare { + border-top: 1px solid lighten($border-grey,5%); + padding-top: 10px; + margin-top: 10px; + } + #reshare-info { + line-height: 15px; + i.retweet { + color: $text-dark-grey; + font-size: 28px; + line-height: 30px; + margin-left: 8px; + margin-right: 8px; } + .post-time a { + color: $grey; + display: block; + font-size: 12px; + } + .avatar { + height: 30px; + width: 30px; + } + .img { margin-right: 10px; } } #single-post-actions { - color: $text-grey; - font-size: 12px; - i { line-height: 50px; } + padding-right: 5px; + i { + font-size: 28px; + line-height: 30px; + } i.comment:hover { color: #424242; } diff --git a/app/assets/templates/feedback_tpl.jst.hbs b/app/assets/templates/feedback_tpl.jst.hbs index daeb7a69c..e41c1459c 100644 --- a/app/assets/templates/feedback_tpl.jst.hbs +++ b/app/assets/templates/feedback_tpl.jst.hbs @@ -7,7 +7,7 @@ {{#if provider_display_name}} - via {{provider_display_name}} + {{t "stream.via" provider=provider_display_name}} {{/if}} – diff --git a/app/assets/templates/single-post-viewer/single-post-content_tpl.jst.hbs b/app/assets/templates/single-post-viewer/single-post-content_tpl.jst.hbs index 1e4407a59..b280983d2 100644 --- a/app/assets/templates/single-post-viewer/single-post-content_tpl.jst.hbs +++ b/app/assets/templates/single-post-viewer/single-post-content_tpl.jst.hbs @@ -1,70 +1,86 @@