user bugs + direct to real 404 tile

This commit is contained in:
Steve Coast 2007-04-07 21:08:58 +00:00
parent 1d06a4eef1
commit 4e9fcb9b91
3 changed files with 6 additions and 6 deletions

View file

@ -38,7 +38,7 @@
function init(){
OpenLayers.Util.onImageLoadError = function() {
this.src = "http://<%= SERVER_URL %>/javascript/img/404.png";
this.src = "http://www.openstreetmap.org/javascript/img/404.png";
}
map = new OpenLayers.Map( "map",
{maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), maxZoomLevel:18, maxResolution:156543, units:'meters', projection: "EPSG:41001"} );

View file

@ -1,5 +1,5 @@
<h2><%= @this_user.display_name %>'s diary</h2>
<% if @this_user.id == @user.id %>
<% if @user and @this_user.id == @user.id %>
<%= link_to 'new post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
<% end %>

View file

@ -1,12 +1,12 @@
<h2><%= @this_user.display_name %></h2>
<% if @this_user.id == @user.id %>
<% if @user and @this_user.id == @user.id %>
<%= link_to 'go to your account page', :controller => 'user', :action => 'account', :display_name => @user.display_name %><br /><br />
<% else %>
<%= link_to 'send message', :controller => 'user', :action => 'message', :display_name => @user.display_name %><br /><br /> |
<%= link_to 'Add as friend', :controller => 'user', :action => 'make_friend', :display_name => @user.display_name %><br /><br />
<%= link_to 'send message', :controller => 'user', :action => 'message', :display_name => @this_user.display_name %><br /><br /> |
<%= link_to 'Add as friend', :controller => 'user', :action => 'make_friend', :display_name => @this_user.display_name %><br /><br />
<% end %>
<%= link_to 'diary', :controller => 'user', :action => 'diary', :display_name => @user.display_name %><br /><br />
<%= link_to 'diary', :controller => 'user', :action => 'diary', :display_name => @this_user.display_name %><br /><br />
<%= simple_format(@this_user.description) %>