Commit dca61d1d authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Kamil Trzciński

Truncate feature flag name in delete modal header

parent ec0d860c
- feature_flag_name = capture do
%span.text-monospace= feature_flag.name
.modal{ id: "delete-feature-flag-modal-#{feature_flag.id}", .modal{ id: "delete-feature-flag-modal-#{feature_flag.id}",
tabindex: -1, tabindex: -1,
role: 'dialog' } role: 'dialog' }
.modal-dialog{ role: 'document' } .modal-dialog{ role: 'document' }
.modal-content .modal-content
.modal-header .modal-header
%h5.modal-title %h5.modal-title.d-flex.mw-100
= s_('FeatureFlags|Delete %{feature_flag_name}?').html_safe % { feature_flag_name: feature_flag_name } - truncated_feature_flag_name = capture do
%span.text-truncate.prepend-left-4.append-right-4= feature_flag.name
= s_('FeatureFlags|Delete %{feature_flag_name}?').html_safe % { feature_flag_name: truncated_feature_flag_name }
%button.close{ type: 'button', data: { dismiss: 'modal' }, aria: { label: _('Close') } } %button.close{ type: 'button', data: { dismiss: 'modal' }, aria: { label: _('Close') } }
%span{ "aria-hidden": true } × %span{ "aria-hidden": true } ×
.modal-body .modal-body
%p %p
= s_('FeatureFlags|Feature flag %{feature_flag_name} will be removed. Are you sure?').html_safe % { feature_flag_name: feature_flag_name } - monospace_feature_flag_name = capture do
%span.text-monospace= feature_flag.name
= s_('FeatureFlags|Feature flag %{feature_flag_name} will be removed. Are you sure?').html_safe % { feature_flag_name: monospace_feature_flag_name }
.modal-footer .modal-footer
%button{ type: 'button', data: { dismiss: 'modal' }, class: 'btn btn-default' } Cancel %button{ type: 'button', data: { dismiss: 'modal' }, class: 'btn btn-default' } Cancel
......
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