Only put the 'home' link in the top left on the map and edit pages, and

make it update position in place rather than reloading the page.
This commit is contained in:
Tom Hughes 2007-08-24 17:43:15 +00:00
parent 034982a12f
commit 6cd8db7bff
3 changed files with 11 additions and 3 deletions

View file

@ -21,9 +21,7 @@
<% if @user and @user.id %>
Welcome, <%= link_to @user.display_name, {:controller => 'user', :action => 'view', :display_name => @user.display_name}%> |
<% @inbox_weight = 'bold' if @user.new_messages.size > 0 %>
<% if !@user.home_lon.nil? and !@user.home_lat.nil? %>
<%= link_to 'home', {:controller => 'site', :action => 'index', :lon => @user.home_lon, :lat => @user.home_lat, :zoom => '10'} %> |
<% end %>
<%= yield :greeting %>
<%= link_to "inbox (#{@user.new_messages.size})", {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, {:style => "font-weight: #{@inbox_weight};" } %> |
<%= link_to 'logout', {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor'}%>
<% else %>