debian-mirror-gitlab/app/views/admin/broadcast_messages/edit.html.haml

20 lines
722 B
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- breadcrumb_title _("Messages")
- page_title _("Broadcast Messages")
2023-03-04 22:38:38 +05:30
- vue_app_enabled = Feature.enabled?(:vue_broadcast_messages, current_user)
2023-03-04 22:38:38 +05:30
- if vue_app_enabled
#js-broadcast-message{ data: {
id: @broadcast_message.id,
message: @broadcast_message.message,
broadcast_type: @broadcast_message.broadcast_type,
theme: @broadcast_message.theme,
dismissable: @broadcast_message.dismissable.to_s,
target_access_levels: @broadcast_message.target_access_levels,
target_path: @broadcast_message.target_path,
starts_at: @broadcast_message.starts_at,
ends_at: @broadcast_message.ends_at,
target_access_level_options: target_access_level_options.to_json,
} }
- else
= render 'form'