-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10263 from danidoni/move-actions-to-sidebar-on-th…
…e-user-page Move the actions present in the user's profile page to the left menu
- Loading branch information
Showing
5 changed files
with
51 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- if feature_enabled?(:responsive_ux) | ||
= render partial: 'webui/user/index_actions' | ||
- else | ||
= link_to('#', data: { toggle: 'modal', target: '#password-modal' }, class: 'd-block') do | ||
%i.fas.fa-key | ||
Change your password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- if feature_enabled?(:responsive_ux) | ||
- content_for :actions do | ||
- if account_edit_link.present? | ||
%li.nav-item | ||
= link_to(account_edit_link, class: 'nav-link') do | ||
%i.fas.fa-lg.mr-2.fa-user-edit | ||
Edit your account | ||
- else | ||
%li.nav-item | ||
= link_to('#', data: { toggle: 'modal', target: '#edit-modal' }, class: 'nav-link') do | ||
%i.fas.fa-lg.mr-2.fa-user-edit | ||
Edit your account | ||
- elsif account_edit_link.present? | ||
= link_to(account_edit_link, class: 'd-block') do | ||
%i.fas.fa-user-edit | ||
Edit your account | ||
- else | ||
= link_to('#', data: { toggle: 'modal', target: '#edit-modal' }, class: 'd-block') do | ||
%i.fas.fa-user-edit | ||
Edit your account |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- content_for :actions do | ||
%li.nav-item | ||
= link_to('#', data: { toggle: 'modal', target: '#password-modal' }, class: 'nav-link') do | ||
%i.fas.fa-lg.mr-2.fa-plus-square | ||
Change your password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters