Commit e3de2ab1 authored by Clement Ho's avatar Clement Ho

[skip ci] Convert label-success to badge-success

parent ed696df5
%tr{ id: dom_id(runner) } %tr{ id: dom_id(runner) }
%td %td
- if runner.shared? - if runner.shared?
%span.badge.label-success shared %span.badge.badge-success shared
- else - else
%span.badge.label-info specific %span.badge.label-info specific
- if runner.locked? - if runner.locked?
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
%span Each Runner can be in one of the following states: %span Each Runner can be in one of the following states:
%ul %ul
%li %li
%span.badge.label-success shared %span.badge.badge-success shared
\- Runner runs jobs from all unassigned projects \- Runner runs jobs from all unassigned projects
%li %li
%span.badge.label-info specific %span.badge.label-info specific
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
- if user.blocked? - if user.blocked?
%span.badge.label-danger blocked %span.badge.label-danger blocked
- if user.admin? - if user.admin?
%span.badge.label-success Admin %span.badge.badge-success Admin
- if user.external? - if user.external?
%span.badge.label-default External %span.badge.label-default External
- if user == current_user - if user == current_user
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
%li %li
= render partial: 'shared/email_with_badge', locals: { email: @primary_email, verified: current_user.confirmed? } = render partial: 'shared/email_with_badge', locals: { email: @primary_email, verified: current_user.confirmed? }
%span.float-right %span.float-right
%span.badge.label-success Primary email %span.badge.badge-success Primary email
- if @primary_email === current_user.public_email - if @primary_email === current_user.public_email
%span.badge.label-info Public email %span.badge.label-info Public email
- if @primary_email === current_user.notification_email - if @primary_email === current_user.notification_email
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
= s_('Branches|merged') = s_('Branches|merged')
- if protected_branch?(@project, branch) - if protected_branch?(@project, branch)
%span.badge.label-success %span.badge.badge-success
= s_('Branches|protected') = s_('Branches|protected')
.block-truncated .block-truncated
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
%td %td
= form_tag verify_project_pages_domain_path(@project, @domain) do = form_tag verify_project_pages_domain_path(@project, @domain) do
.status-badge .status-badge
- text, status = @domain.unverified? ? [_('Unverified'), 'label-danger'] : [_('Verified'), 'label-success'] - text, status = @domain.unverified? ? [_('Unverified'), 'label-danger'] : [_('Verified'), 'badge-success']
.label{ class: status } .label{ class: status }
= text = text
%button.btn.has-tooltip{ type: "submit", data: { container: 'body' }, title: _("Retry verification") } %button.btn.has-tooltip{ type: "submit", data: { container: 'body' }, title: _("Retry verification") }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
%div %div
%ul %ul
%li %li
%span.badge.label-success active %span.badge.badge-success active
\- Runner is active and can process any new jobs \- Runner is active and can process any new jobs
%li %li
%span.badge.label-danger paused %span.badge.label-danger paused
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
= link_to tag.name, project_tag_path(@project, tag.name), class: 'item-title ref-name prepend-left-4' = link_to tag.name, project_tag_path(@project, tag.name), class: 'item-title ref-name prepend-left-4'
- if protected_tag?(@project, tag) - if protected_tag?(@project, tag)
%span.badge.label-success.prepend-left-4 %span.badge.badge-success.prepend-left-4
= s_('TagsPage|protected') = s_('TagsPage|protected')
- if tag.message.present? - if tag.message.present?
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
= icon('tag') = icon('tag')
= @tag.name = @tag.name
- if protected_tag?(@project, @tag) - if protected_tag?(@project, @tag)
%span.badge.label-success %span.badge.badge-success
= s_('TagsPage|protected') = s_('TagsPage|protected')
- if @commit - if @commit
= render 'projects/branches/commit', commit: @commit, project: @project = render 'projects/branches/commit', commit: @commit, project: @project
......
- label_status = hook_log.success? ? 'label-success' : 'label-danger' - label_status = hook_log.success? ? 'badge-success' : 'label-danger'
%span{ class: "label #{label_status}" } %span{ class: "label #{label_status}" }
= hook_log.response_status = hook_log.response_status
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
%span.cgray= user.to_reference %span.cgray= user.to_reference
- if user == current_user - if user == current_user
%span.badge.label-success.prepend-left-5 It's you %span.badge.badge-success.prepend-left-5 It's you
- if user.blocked? - if user.blocked?
%label.badge.label-danger %label.badge.label-danger
......
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