From: Grant Slater Date: Sun, 22 May 2011 15:16:44 +0000 (+0100) Subject: Correct some minor html validation errors X-Git-Tag: live~6290^2~3 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c7ffb35e8b07255796e62e52a6a23950f88ae093 Correct some minor html validation errors --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c24e7ff5b..6e2ecd323 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -50,7 +50,7 @@ module ApplicationHelper css << ".show_if_user_#{@user.id} { display: inline }" if @user; css << ".hide_unless_administrator { display: none }" unless @user and @user.administrator?; - return content_tag(:style, css) + return content_tag(:style, css, :type => "text/css") end def if_logged_in(tag = :div, &block) diff --git a/app/views/user/login.html.erb b/app/views/user/login.html.erb index 66a2fab99..7cc4b6f24 100644 --- a/app/views/user/login.html.erb +++ b/app/views/user/login.html.erb @@ -13,13 +13,13 @@ <%= submit_tag t('user.login.login_button'), :tabindex => 3 %> <% end %> -
+

<%= t 'user.login.new to osm' %>

<%= t 'user.login.to make changes' %>

-

<%= t 'user.login.create account minute' %>

+

<%= t 'user.login.create account minute' %>

<%= button_to t('user.login.register now'), :action => :new, :referer => params[:referer] %>

-
+