056f6dd08f
- Avatar, group name, and group description now left-aligned - Notification setting and "New project" CTA right-aligned with group avatar and name - Leave group / request access now a link next to the 'Group' label below the group name - Notification setting label removed in favor of icons - Tooltip added to indicate notification setting - Search option moved inside table header next to "Sort by"
26 lines
2.1 KiB
Text
26 lines
2.1 KiB
Text
- btn_class = local_assigns.fetch(:btn_class, nil)
|
|
|
|
- if notification_setting
|
|
.js-notification-dropdown.notification-dropdown.home-panel-action-button.dropdown.inline
|
|
= form_for notification_setting, remote: true, html: { class: "inline notification-form" } do |f|
|
|
= hidden_setting_source_input(notification_setting)
|
|
= f.hidden_field :level, class: "notification_setting_level"
|
|
.js-notification-toggle-btns
|
|
%div{ class: ("btn-group" if notification_setting.custom?) }
|
|
- if notification_setting.custom?
|
|
%button.dropdown-new.btn.btn-default.has-tooltip.notifications-btn#notifications-button{ type: "button", title: _("Notification setting"), class: "#{btn_class}", "aria-label" => _("Notification setting - %{notification_title}") % { notification_title: notification_title(notification_setting.level) }, data: { container: "body", toggle: "modal", target: "#" + notifications_menu_identifier("modal", notification_setting), display: 'static' } }
|
|
= icon("bell", class: "js-notification-loading")
|
|
= notification_title(notification_setting.level)
|
|
%button.btn.dropdown-toggle{ data: { toggle: "dropdown", target: notifications_menu_identifier("dropdown", notification_setting), flip: "false" } }
|
|
= icon('caret-down')
|
|
.sr-only Toggle dropdown
|
|
- else
|
|
%button.dropdown-new.btn.btn-default.has-tooltip.notifications-btn#notifications-button{ type: "button", title: "Notification setting", class: "#{btn_class}", "aria-label" => "Notification setting: #{notification_title(notification_setting.level)}", data: { container: "body", toggle: "dropdown", target: notifications_menu_identifier("dropdown", notification_setting), flip: "false" } }
|
|
= icon("bell", class: "js-notification-loading")
|
|
= notification_title(notification_setting.level)
|
|
= icon("caret-down")
|
|
|
|
= render "shared/notifications/notification_dropdown", notification_setting: notification_setting
|
|
|
|
= content_for :scripts_body do
|
|
= render "shared/notifications/custom_notifications", notification_setting: notification_setting
|