fixes #1982
This commit is contained in:
@@ -9,15 +9,17 @@ div.error-messages {
|
|||||||
}
|
}
|
||||||
|
|
||||||
div#notice {
|
div#notice {
|
||||||
margin: 1em 0;
|
margin: 0;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 1em;
|
top: 0;
|
||||||
right: 1em;
|
left: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
width: 100%;
|
||||||
|
border-bottom: 2px solid #89857B;
|
||||||
}
|
}
|
||||||
|
|
||||||
a#close-notice-link {
|
a#close-notice-link {
|
||||||
float: right;
|
float: right;
|
||||||
margin-left: 1em;
|
margin-right: 2em;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ class PostsController < ApplicationController
|
|||||||
rescue_from ActiveRecord::RecordNotFound, :with => :rescue_exception
|
rescue_from ActiveRecord::RecordNotFound, :with => :rescue_exception
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
flash[:notice] = "test 1 2 3"
|
||||||
if params[:md5].present?
|
if params[:md5].present?
|
||||||
@post = Post.find_by_md5(params[:md5])
|
@post = Post.find_by_md5(params[:md5])
|
||||||
redirect_to post_path(@post)
|
redirect_to post_path(@post)
|
||||||
|
|||||||
Reference in New Issue
Block a user