Migrate to shared alert HAML partial in app/views/projects/_deletion_failed.html.haml
Update app/views/projects/_deletion_failed.html.haml to leverage the shared alert HAML partial (app/views/shared/_global_alert.html.haml).
Refer to the epic for detailed migration instructions.
-
The alert is rendered with render 'shared/global_alert'. -
The alert's body is placed in the partial's block and wrapped in a .gl-alert-bodyselector. -
If the alert has actions, they are rendered in the partial's block, below the body, and wrapped in a .gl-alert-actionsselector.-
If there are multiple action buttons, they are separated with a .gl-ml-3margin or equivalent.
-
-
If the alert has a title, it is set via the titleparameter. -
The alert's variant is set via the variantparameter (can be omitted for info alerts). -
If the alert is non-dismissible, the dismissibleparameter is set tofalse. -
Alert's classes are set via the alert_classparameter. -
Alert's data attributes are set via the alert_dataparameter. -
Alert's dismiss button's classes are set via the close_button_classparameter. -
Alert's dismiss button's data attributes are set via the close_button_dataparameter.
Edited by Paul Gascou-Vaillancourt