From b9737747f2743d077faa8451dcc671de45f18ac1 Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Tue, 18 Jan 2005 00:27:28 +0000 Subject: [PATCH] Display error message from a flash at the top of the page --- app/views/layouts/default.rhtml | 4 ++++ public/stylesheets/instiki.css | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml index 778403a6..8885a2de 100644 --- a/app/views/layouts/default.rhtml +++ b/app/views/layouts/default.rhtml @@ -47,6 +47,10 @@ <% end %> +<% if @flash[:error] %>
+

<%= @flash[:error].to_s %>


+<% end %> + <%= render 'navigation' unless @web.nil? || @hide_navigation %> <%= @content_for_layout %> diff --git a/public/stylesheets/instiki.css b/public/stylesheets/instiki.css index 067ed43e..b656b79b 100755 --- a/public/stylesheets/instiki.css +++ b/public/stylesheets/instiki.css @@ -137,6 +137,12 @@ ol.setup li { background: lightgreen; } +.error { + color: darkred; + font-style: italic; + width: 450px; +} + #TextileHelp table { margin-bottom: 0; }