From 594668cfe71bc739482efa90ff82573fdd56df84 Mon Sep 17 00:00:00 2001 From: Maximilian Fischer Date: Sun, 9 Feb 2014 12:32:05 +0100 Subject: [PATCH] Better position for error and notice message - since we included the error and notice message in the container of the page you were not able to see some of the error/notice messages, if you scrolled down too far. --- app/assets/stylesheets/common.css.scss | 4 ++++ app/views/layouts/_navbar.html.erb | 4 ++++ app/views/layouts/application.html.erb | 2 -- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 app/assets/stylesheets/common.css.scss diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss new file mode 100644 index 0000000..464872e --- /dev/null +++ b/app/assets/stylesheets/common.css.scss @@ -0,0 +1,4 @@ +#alert_notice { + text-align: right; + padding-right: 20px; +} diff --git a/app/views/layouts/_navbar.html.erb b/app/views/layouts/_navbar.html.erb index 1780298..230742e 100644 --- a/app/views/layouts/_navbar.html.erb +++ b/app/views/layouts/_navbar.html.erb @@ -38,4 +38,8 @@ <% end %> +
+

<%= notice %>

+

<%= alert %>

+
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index fd316d6..d6ee1fc 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -12,8 +12,6 @@ <%= render :partial => 'layouts/navbar' %>
-

<%= notice %>

-

<%= alert %>

<%= yield %>
<%=image_tag "loading.gif", :class => 'loading none'%>