Skip to content

Commit ae6cab5

Browse files
committed
Standardize sing up button language and use translation strings
1 parent 4d6bde8 commit ae6cab5

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

app/views/chapter/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- if logged_in?
2020
= render partial: 'subscriptions'
2121
- else
22-
= link_to 'Join our community', new_member_path, class: 'btn btn-primary'
22+
= link_to t('members.sign_up'), new_member_path, class: 'btn btn-primary'
2323

2424
.container.py-4.py-lg-5
2525
.row

app/views/dashboard/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.container.d-flex
88
.col-md-5.offset-md-1.p-3.text
99
%p.lead.mb-0= raw t('homepage.intro')
10-
= link_to ('Join our community'), new_member_path, class: 'btn btn-primary btn-lg mt-4'
10+
= link_to t('members.sign_up'), new_member_path, class: 'btn btn-primary btn-lg mt-4'
1111

1212
.py-4.py-lg-5.bg-light
1313
.container

app/views/events/_event_actions.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
= link_to event_coach_rsvp_path(@event), class: 'btn btn-primary' do
1515
= t('events.attend_as_coach')
1616
- else
17-
= link_to 'Sign up', new_member_path, class: 'btn btn-primary me-2'
17+
= link_to t('members.sign_up'), new_member_path, class: 'btn btn-primary me-2'
1818
= link_to 'Log in', login_path, class: 'btn btn-primary'
1919
- else
2020
%p.badge.bg-primary= t('events.not_open_for_rsvp')

app/views/meetings/_meeting_actions.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
%strong This event is not open for RSVP.
4242

4343
- else
44-
= link_to 'Sign up', new_member_path, class: 'btn btn-primary'
44+
= link_to t('members.sign_up'), new_member_path, class: 'btn btn-primary'
4545
= link_to 'Log in', login_path, class: 'btn btn-primary'

app/views/workshops/_actions.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030

3131
- elsif not logged_in?
3232
%div
33-
= link_to 'Sign up', new_member_path, class: 'btn btn-primary'
33+
= link_to t('members.sign_up'), new_member_path, class: 'btn btn-primary'
3434
= link_to 'Log in', login_path, class: 'btn btn-primary'

spec/features/view_event_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
scenario 'a student cannot RSVP if they are not logged in' do
2020
expect(page).to have_link('Log in')
21-
expect(page).to have_link('Sign up')
21+
expect(page).to have_link('Join our community')
2222
expect(page).to_not have_link('Attend as a student')
2323
end
2424

2525
scenario 'a coach cannot RSVP if they are not logged in' do
2626
expect(page).to have_link('Log in')
27-
expect(page).to have_link('Sign up')
27+
expect(page).to have_link('Join our community')
2828
expect(page).to_not have_link('Attend as a coach')
2929
end
3030
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
RSpec.shared_examples 'viewing workshop actions' do
22
scenario 'signing up or signing in' do
3-
expect(page).to have_content('Sign up')
3+
expect(page).to have_content('Join our community')
44
expect(page).to have_content('Log in')
55
end
66
end

0 commit comments

Comments
 (0)