X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/97978ceeb9047ec6894b822ca947a466c2462988..b92e1b058421a6bf49f65f2d45060cfdf197fd1d:/app/views/layouts/site.rhtml diff --git a/app/views/layouts/site.rhtml b/app/views/layouts/site.rhtml index aaf4e0324..a2b912a97 100644 --- a/app/views/layouts/site.rhtml +++ b/app/views/layouts/site.rhtml @@ -1,102 +1,105 @@ + - <%= javascript_include_tag 'main.js' %> - - <%= javascript_include_tag 'tile.js' %> <%= javascript_include_tag 'site.js' %> - - - OpenStreetMap + + <%= stylesheet_link_tag 'site.css' %> + OpenStreetMap<%= ' | '+@title if @title %> -
-<% if @flash[:notice] %> -
<%= @flash[:notice] %>
-<% end %> + <% if params[:controller] == 'site' and params[:action] == 'index' %> +
+ <% end %> - <%= @content_for_layout %> +
+ <% if flash[:notice] %> +
<%= flash[:notice] %>
+ <% end %> -
+ <%= yield %> +
- - <% if @user %> - Welcome, <%= @user.email %> / - <%= link_to 'Logout', {:controller => 'user', :action => 'logout'}, {:id => 'loginanchor'}%> - <% else %> - <%= link_to 'Login', {:controller => 'user', :action => 'login'}, {:id => 'loginanchor'}%> / - <%= link_to 'Sign up', {:controller => 'user', :action => 'new'}, {:id => 'registeranchor'} %> - <% end %> - - -
- -
- -
- -