Commit 5e546f4b authored by Clement Ho's avatar Clement Ho

[skip ci] label-danger => badge-danger

parent e3de2ab1
......@@ -7,7 +7,7 @@
- if runner.locked?
%span.badge.badge-warning locked
- unless runner.active?
%span.badge.label-danger paused
%span.badge.badge-danger paused
%td
= link_to admin_runner_path(runner) do
......
......@@ -23,7 +23,7 @@
%span.badge.badge-warning locked
\- Runner cannot be assigned to other projects
%li
%span.badge.label-danger paused
%span.badge.badge-danger paused
\- Runner will not receive any new jobs
.bs-callout.clearfix
......
......@@ -5,7 +5,7 @@
.user-name.row-title.str-truncated-100
= link_to user.name, [:admin, user]
- if user.blocked?
%span.badge.label-danger blocked
%span.badge.badge-danger blocked
- if user.admin?
%span.badge.badge-success Admin
- if user.external?
......
......@@ -74,7 +74,7 @@
= link_to repo.full_name, "https://bitbucket.org/#{repo.full_name}", target: '_blank', rel: 'noopener noreferrer'
%td.import-target
%td.import-actions-job-status
= label_tag 'Incompatible Project', nil, class: 'label label-danger'
= label_tag 'Incompatible Project', nil, class: 'label badge-danger'
- if @incompatible_repos.any?
%p
......
......@@ -66,7 +66,7 @@
= link_to repo.name, "https://code.google.com/p/#{repo.name}", target: "_blank", rel: 'noopener noreferrer'
%td.import-target
%td.import-actions-job-status
= label_tag "Incompatible Project", nil, class: "label label-danger"
= label_tag "Incompatible Project", nil, class: "label badge-danger"
- if @incompatible_repos.any?
%p
......
......@@ -46,7 +46,7 @@
- if job.try(:trigger_request)
%span.badge.label-info triggered
- if job.try(:allow_failure)
%span.badge.label-danger allowed to fail
%span.badge.badge-danger allowed to fail
- if job.action?
%span.badge.label-info manual
......
......@@ -19,7 +19,7 @@
%p
%span.badge.label-gray Certificate: #{domain.subject}
- if domain.expired?
%span.badge.label-danger Expired
%span.badge.badge-danger Expired
%div
= link_to 'Details', project_pages_domain_path(@project, domain), class: "btn btn-sm btn-grouped"
= link_to 'Remove', project_pages_domain_path(@project, domain), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove btn-sm btn-grouped"
......
......@@ -43,7 +43,7 @@
%td
= form_tag verify_project_pages_domain_path(@project, @domain) do
.status-badge
- text, status = @domain.unverified? ? [_('Unverified'), 'label-danger'] : [_('Verified'), 'badge-success']
- text, status = @domain.unverified? ? [_('Unverified'), 'badge-danger'] : [_('Verified'), 'badge-success']
.label{ class: status }
= text
%button.btn.has-tooltip{ type: "submit", data: { container: 'body' }, title: _("Retry verification") }
......
......@@ -12,7 +12,7 @@
%span.badge.badge-success active
\- Runner is active and can process any new jobs
%li
%span.badge.label-danger paused
%span.badge.badge-danger paused
\- Runner is paused and will not receive any new jobs
%hr
......
......@@ -10,7 +10,7 @@
- if trigger.legacy?
%span.badge.badge-primary.has-tooltip{ title: "Trigger makes use of deprecated functionality" } legacy
- if !trigger.can_access_project?
%span.badge.label-danger.has-tooltip{ title: "Trigger user has insufficient permissions to project" } invalid
%span.badge.badge-danger.has-tooltip{ title: "Trigger user has insufficient permissions to project" } invalid
%td
- if trigger.description? && trigger.description.length > 15
......
......@@ -4,7 +4,7 @@
= link_to [issue.project.namespace.becomes(Namespace), issue.project, issue] do
%span.term.str-truncated= issue.title
- if issue.closed?
%span.badge.label-danger.prepend-left-5 Closed
%span.badge.badge-danger.prepend-left-5 Closed
.float-right ##{issue.iid}
- if issue.description.present?
.description.term
......
......@@ -5,7 +5,7 @@
- if merge_request.merged?
%span.badge.badge-primary.prepend-left-5 Merged
- elsif merge_request.closed?
%span.badge.label-danger.prepend-left-5 Closed
%span.badge.badge-danger.prepend-left-5 Closed
.float-right= merge_request.to_reference
- if merge_request.description.present?
.description.term
......
- label_status = hook_log.success? ? 'badge-success' : 'label-danger'
- label_status = hook_log.success? ? 'badge-success' : 'badge-danger'
%span{ class: "label #{label_status}" }
= hook_log.response_status
......@@ -17,7 +17,7 @@
%span.badge.badge-success.prepend-left-5 It's you
- if user.blocked?
%label.badge.label-danger
%label.badge.badge-danger
%strong Blocked
- if source.instance_of?(Group) && source != @group
......
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