Commit 568f4673 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'fix-broadcast-messages-table' into 'master'

Fix the markup for broadcast messages table

See merge request gitlab-org/gitlab!78881
parents dfc0d76e 9455ede4
......@@ -11,33 +11,33 @@
%br.clearfix
- if @broadcast_messages.any?
%table.table.table-responsive
%thead
%tr
%th= _('Status')
%th= _('Preview')
%th= _('Starts')
%th= _('Ends')
%th= _(' Target Path')
%th= _(' Type')
%th  
%tbody
- @broadcast_messages.each do |message|
.table-responsive
%table.table.b-table.gl-table
%thead
%tr
%td
= broadcast_message_status(message)
%td
= broadcast_message(message, preview: true)
%td
= message.starts_at
%td
= message.ends_at
%td
= message.target_path
%td
= message.broadcast_type.capitalize
%td.gl-white-space-nowrap.gl-display-flex
= link_to sprite_icon('pencil-square', css_class: 'gl-icon'), edit_admin_broadcast_message_path(message), title: _('Edit'), class: 'btn btn-icon gl-button'
= link_to sprite_icon('remove', css_class: 'gl-icon'), admin_broadcast_message_path(message), method: :delete, remote: true, title: _('Remove'), class: 'js-remove-tr btn btn-icon gl-button btn-danger ml-2'
= paginate @broadcast_messages, theme: 'gitlab'
%th= _('Status')
%th= _('Preview')
%th= _('Starts')
%th= _('Ends')
%th= _(' Target Path')
%th= _(' Type')
%th  
%tbody
- @broadcast_messages.each do |message|
%tr
%td
= broadcast_message_status(message)
%td
= broadcast_message(message, preview: true)
%td
= message.starts_at
%td
= message.ends_at
%td
= message.target_path
%td
= message.broadcast_type.capitalize
%td.gl-white-space-nowrap
= link_to sprite_icon('pencil-square', css_class: 'gl-icon'), edit_admin_broadcast_message_path(message), title: _('Edit'), class: 'btn btn-icon gl-button'
= link_to sprite_icon('remove', css_class: 'gl-icon'), admin_broadcast_message_path(message), method: :delete, remote: true, title: _('Remove'), class: 'js-remove-tr btn btn-icon gl-button btn-danger ml-2'
= paginate @broadcast_messages, theme: 'gitlab'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment