<% else %>
<% content_for :greeting do %>
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
-<%= link_to_function t('layouts.home'), "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)", { :title => t('layouts.home_tooltip') } %> |
+<%= link_to_function 'home', "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
<% end %>
<% end %>
window.onbeforeunload=function() {
if (!changesaved) {
- return '#{escape_javascript(t('site.edit.potlatch_unsaved_changes'))}';
+ return '<%= escape_javascript(t('site.edit.potlatch_unsaved_changes')) %>';
}
}