debian-mirror-gitlab/app/views/shared/hook_logs/_status_label.html.haml
2022-03-02 08:16:31 +05:30

4 lines
203 B
Text

- badge_variant = hook_log.success? ? :success : :danger
- badge_text = hook_log.internal_error? ? _('Error') : hook_log.response_status
= gl_badge_tag badge_text, { variant: badge_variant, size: :sm }