X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c382f33e1c2e17ba00898dede1ff9c3605818f16..1bbe59b6a77030c362f9991083aa7c06799b272d:/app/views/layouts/site.rhtml diff --git a/app/views/layouts/site.rhtml b/app/views/layouts/site.rhtml index d32490729..8d2ac722e 100644 --- a/app/views/layouts/site.rhtml +++ b/app/views/layouts/site.rhtml @@ -1,3 +1,4 @@ +
<%= javascript_include_tag 'main.js' %> @@ -23,9 +24,8 @@ - <% if @user %> - Welcome, <%= @user.display_name %> | - <%= link_to 'account', {:controller => 'user', :action => 'account'}, {:id => 'loginanchor'}%> | + <% if @user %> + Welcome, <%= link_to @user.display_name, {:controller => 'user', :action => 'view', :display_name => @user.display_name}, {:id => 'loginanchor'}%> | <%= link_to 'logout', {:controller => 'user', :action => 'logout'}, {:id => 'loginanchor'}%> <% else %> <%= link_to 'log in', {:controller => 'user', :action => 'login'}, {:id => 'loginanchor'}%> | @@ -69,6 +69,7 @@