From af1d97a4593ec89d9c8187e0180898106d84e09b Mon Sep 17 00:00:00 2001 From: cyberarm Date: Tue, 23 Jul 2013 08:40:18 -0500 Subject: [PATCH 1/2] Fixed atom feed url --- app/views/questions/index.html.haml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/questions/index.html.haml b/app/views/questions/index.html.haml index 82fbbcbe..0c46b2ff 100644 --- a/app/views/questions/index.html.haml +++ b/app/views/questions/index.html.haml @@ -1,5 +1,7 @@ - content_for :head do - - unless @support + - if @support + = auto_discovery_link_tag :atom, support_questions_url(format: :atom) + - else = auto_discovery_link_tag :atom, questions_url(format: :atom) - content_for :title do @@ -16,7 +18,10 @@ = render :partial => "shared/support_blurb" - content_for :feed do - = link_to "Feed", questions_url(format: :atom) + - if @support + = link_to "Feed", support_questions_url(format: :atom) + - else + = link_to "Feed", questions_url(format: :atom) %ul.questions = render :partial => "list", :collection => collection From 3a05264ae5721103906fbf88ec061b47b4256e0d Mon Sep 17 00:00:00 2001 From: cyberarm Date: Tue, 23 Jul 2013 09:25:23 -0500 Subject: [PATCH 2/2] Fixed autofocus skipping username --- app/views/users/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/_form.html.haml b/app/views/users/_form.html.haml index 1f20859d..49e9154b 100644 --- a/app/views/users/_form.html.haml +++ b/app/views/users/_form.html.haml @@ -3,7 +3,7 @@ = f.error_notification .inputs = f.input :username, :autofocus => true - = f.input :email, :autofocus => true + = f.input :email .inputs - pwd_options = resource.new_record? ? {} : {:hint => "Leave it blank if you don't want to change it"} = f.input :password, pwd_options.merge({:required => false})