Skip to content

Commit

Permalink
Add link to learn more about adopting a drain to unauthenticated adop…
Browse files Browse the repository at this point in the history
…t modal

Fixes #65
  • Loading branch information
jszwedko committed Jan 11, 2016
1 parent ba9d020 commit 04d3d33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/views/users/sign_in.html.haml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
%h2
= t("titles.sign_in", :thing => t("defaults.thing").titleize)
%h3
= t("titles.sign_in", :thing => t("defaults.thing"))
%a.guidelines{:href => "#guidelines", :"data-toggle" => "modal", :"data-target" => "#guidelines"}
%p= t("links.learn_more", :thing => t("defaults.thing"))
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ en:
forgot_password: "Forgot your password?"
remembered_password: "Never mind. I remembered my password."
click_for_more: "Click to learn more"
learn_more: "Learn more about adopting a %{thing}"
notices:
abandoned: "%{thing} abandoned!"
adopted: "You just adopted a %{thing}!"
Expand Down
3 changes: 2 additions & 1 deletion test/controllers/info_window_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class InfoWindowControllerTest < ActionController::TestCase
assert_not_nil assigns :thing
assert_response :success
assert_template 'users/sign_in'
assert_select 'h2', 'Sign in to adopt this Drain'
assert_select 'h3', 'Sign in to adopt this drain'
assert_select 'a.guidelines p', 'Learn more about adopting a drain'
end
end

1 comment on commit 04d3d33

@jasonlally
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good

Please sign in to comment.