From abba8d8dfc29206da7744c78a06b6cbc29dbbe06 Mon Sep 17 00:00:00 2001 From: flaburgan Date: Sun, 11 Aug 2013 23:55:40 +0200 Subject: [PATCH] Add header to the single post view --- Changelog.md | 2 ++ app/assets/stylesheets/header.css.scss | 2 ++ app/assets/templates/post-viewer_tpl.jst.hbs | 18 +++--------------- app/controllers/posts_controller.rb | 2 +- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/Changelog.md b/Changelog.md index d78a0dd8e..f8dc57214 100644 --- a/Changelog.md +++ b/Changelog.md @@ -57,6 +57,8 @@ * Add possibility to ask for Bitcoin donations [#4375](https://github.com/diaspora/diaspora/pull/4375) * Remove posts, comments and private conversations from the mobile site. [#4408](https://github.com/diaspora/diaspora/pull/4408) [#4409](https://github.com/diaspora/diaspora/pull/4409) * Added a link to user photos and thumbnails are shown in the left side bar [#4347](https://github.com/diaspora/diaspora/issues/4347) +======= +* Rework the single post view # 0.1.1.0 diff --git a/app/assets/stylesheets/header.css.scss b/app/assets/stylesheets/header.css.scss index f3eea7d72..494c20190 100644 --- a/app/assets/stylesheets/header.css.scss +++ b/app/assets/stylesheets/header.css.scss @@ -1,3 +1,5 @@ +body > #container { margin-top: 50px; } /* to avoid being hidden under the header in the SPV */ + body > header { @include box-shadow(0,1px,3px,rgba(0,0,0,0.9)); background: url('header-bg.png') rgb(40,35,35); diff --git a/app/assets/templates/post-viewer_tpl.jst.hbs b/app/assets/templates/post-viewer_tpl.jst.hbs index 8301ac213..dada78ec9 100644 --- a/app/assets/templates/post-viewer_tpl.jst.hbs +++ b/app/assets/templates/post-viewer_tpl.jst.hbs @@ -1,16 +1,4 @@
- -
- - - - - {{t "viewer.home"}} - - - -
- -
-
-
+
+
+
diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 10c579337..9911e251c 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -9,7 +9,7 @@ class PostsController < ApplicationController before_filter :set_format_if_malformed_from_status_net, :only => :show before_filter :find_post, :only => [:show, :next, :previous, :interactions] - layout 'application' + layout 'with_header' before_filter -> { @css_framework = :bootstrap } respond_to :html,