From 35e60d4d7b30aa99a9c515554d00c6d6f5fc2099 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 22 Sep 2010 18:40:17 +0100 Subject: [PATCH] Avoid empty content_for blocks as they trigger warnings --- app/views/site/index.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 8d0864f01..71cafacbc 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -1,7 +1,7 @@ -<% 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}, 15)", { :title => t('layouts.home_tooltip') } %> | -<% end %> + <% content_for :greeting do %> + <%= link_to_function t('layouts.home'), "setPosition(#{@user.home_lat}, #{@user.home_lon}, 15)", { :title => t('layouts.home_tooltip') } %> | + <% end %> <% end %> <%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %> -- 2.39.5