Change server rules to be collapsible (#33039)

This commit is contained in:
Eugen Rochko 2024-11-29 17:33:06 +01:00 committed by GitHub
parent 4635ce2926
commit 986a3676d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 51 additions and 131 deletions

View file

@ -19,8 +19,9 @@
%ol.rules-list
- @rules.each do |rule|
%li
.rules-list__text= rule.text
.rules-list__hint= rule.hint
%button{ type: 'button', aria: { expanded: 'false' } }
.rules-list__text= rule.text
.rules-list__hint= rule.hint
.stacked-actions
- accept_path = @invite_code.present? ? public_invite_url(invite_code: @invite_code, accept: @accept_token) : new_user_registration_path(accept: @accept_token)