From 892d62fac3ecf7665ee2c43631fb04ab737f10dd Mon Sep 17 00:00:00 2001 From: r888888888 Date: Mon, 7 Oct 2013 17:59:43 -0700 Subject: [PATCH] fixes #1982 --- app/assets/stylesheets/common/notices.css.scss | 10 ++++++---- app/controllers/posts_controller.rb | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/common/notices.css.scss b/app/assets/stylesheets/common/notices.css.scss index b623f313c..a16f36d2c 100644 --- a/app/assets/stylesheets/common/notices.css.scss +++ b/app/assets/stylesheets/common/notices.css.scss @@ -9,15 +9,17 @@ div.error-messages { } div#notice { - margin: 1em 0; + margin: 0; padding: 1em; position: fixed; - top: 1em; - right: 1em; + top: 0; + left: 0; z-index: 100; + width: 100%; + border-bottom: 2px solid #89857B; } a#close-notice-link { float: right; - margin-left: 1em; + margin-right: 2em; } diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index e53509cc2..21a4a5a19 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -9,6 +9,7 @@ class PostsController < ApplicationController rescue_from ActiveRecord::RecordNotFound, :with => :rescue_exception def index + flash[:notice] = "test 1 2 3" if params[:md5].present? @post = Post.find_by_md5(params[:md5]) redirect_to post_path(@post)