Commit b625785a22b60813279c48a47bdd9c03c7a6f30c

Authored by Antonio Terceiro
1 parent d418a50a

ActionItem1050: moving flash display to common layout code

app/views/layouts/application.rhtml
@@ -63,17 +63,6 @@ @@ -63,17 +63,6 @@
63 registerDocumentSize(); 63 registerDocumentSize();
64 </script> 64 </script>
65 65
66 - <% unless flash[:notice].nil? %>  
67 - <div id="notice" onclick="Element.hide('notice');" style="display:none">  
68 - <%= flash[:notice] %>  
69 - <%= javascript_tag(  
70 - visual_effect( :appear, 'notice', :duration => 2, :queue => :end ) +  
71 - visual_effect( :highlight, 'notice', :duration => 3, :queue => :end ) +  
72 - visual_effect( :fade, 'notice', :duration => 2, :queue => :end )  
73 - ) %>  
74 - </div>  
75 - <% end %>  
76 -  
77 <div id="accessibility_menu"> 66 <div id="accessibility_menu">
78 <a href="#content" id="link_go_content"><span><%= _('Go to content') %></span></a> 67 <a href="#content" id="link_go_content"><span><%= _('Go to content') %></span></a>
79 </div><!-- accessibility_menu --> 68 </div><!-- accessibility_menu -->
app/views/shared/noosfero_layout_features.rhtml
  1 + <% unless flash[:notice].nil? %>
  2 + <div id="notice" onclick="Element.hide('notice');" style="display:none">
  3 + <%= flash[:notice] %>
  4 + <%= javascript_tag(
  5 + visual_effect( :appear, 'notice', :duration => 0.5, :queue => :end ) +
  6 + visual_effect( :highlight, 'notice', :duration => 3, :queue => :end ) +
  7 + visual_effect( :fade, 'notice', :duration => 1.5, :queue => :end )
  8 + ) %>
  9 + </div>
  10 + <% end %>
  11 +
1 <% if is_testing_theme %> 12 <% if is_testing_theme %>
2 <%= render :file => 'shared/theme_test_panel' %> 13 <%= render :file => 'shared/theme_test_panel' %>
3 <% end %> 14 <% end %>