-
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.
Add link to related roles for "Add Role" action
The notification toolbar is used in the project and package roles pages to show a link to go back to the request action.
- Loading branch information
Showing
5 changed files
with
41 additions
and
6 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
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
15 changes: 11 additions & 4 deletions
15
src/api/app/views/layouts/webui/_notification_toolbar.html.haml
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
.notification-toolbar.sticky-top.navbar.navbar-light.bg-light.border-bottom.border-gray-400 | ||
= link_to(my_notifications_path, class: 'btn btn-sm btn-outline-secondary', title: 'Back to notifications') do | ||
%i.fas.fa-arrow-left | ||
Back to notifications | ||
= mark_as_read_or_unread_button(notification) | ||
.container-fluid | ||
- if request_action | ||
= link_to(request_show_path(number: request_action.bs_request.number, request_action_id: request_action.id, notification_id: notification), | ||
class: 'btn btn-sm btn-outline-secondary', title: 'Back to request action') do | ||
%i.fas.fa-arrow-left | ||
Back to request action "Add #{request_action.person_name} as #{request_action.role}" | ||
- else | ||
= link_to(my_notifications_path, class: 'btn btn-sm btn-outline-secondary', title: 'Back to notifications') do | ||
%i.fas.fa-arrow-left | ||
Back to notifications | ||
= mark_as_read_or_unread_button(notification) |
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