Skip to content

Commit 44f0fb8

Browse files
committed
Fix appearance of link 'Set as current study group'
1 parent d40557c commit 44f0fb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/external_users/show.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ h1 = @user.displayname
2323
- if study_group_membership.study_group_id == current_user.current_study_group_id
2424
span.text-success =< t('users.show.current_study_group')
2525
- else
26-
=< button_to(t('users.show.set_as_current_study_group'), set_as_current_study_group_path(study_group_membership.study_group), method: :post, class: 'btn btn-sm btn-link text-body-secondary')
26+
=< button_to(t('users.show.set_as_current_study_group'), set_as_current_study_group_path(study_group_membership.study_group), method: :post, form_class: 'd-inline-block', class: 'btn btn-link text-body-secondary')
2727
- elsif @user == current_user && study_group_membership.role_teacher? && study_group_membership.study_group_id == current_user.current_study_group_id
2828
| ,
2929
span.text-success =< t('users.show.current_study_group')

app/views/internal_users/show.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ h1
2323
- if study_group_membership.study_group_id == current_user.current_study_group_id
2424
span.text-success =< t('users.show.current_study_group')
2525
- else
26-
=< button_to(t('users.show.set_as_current_study_group'), set_as_current_study_group_path(study_group_membership.study_group), method: :post, class: 'btn btn-sm btn-link text-body-secondary')
26+
=< button_to(t('users.show.set_as_current_study_group'), set_as_current_study_group_path(study_group_membership.study_group), method: :post, form_class: 'd-inline-block', class: 'btn btn-link text-body-secondary')
2727
| )
2828
- else
2929
= t('users.show.no_groups')

0 commit comments

Comments
 (0)