Skip to content
Snippets Groups Projects
Commit 21785171 authored by Clement Ho's avatar Clement Ho
Browse files

[skip ci] Convert .label. to .badge.

parent b1c4fdec
No related branches found
No related tags found
No related merge requests found
Showing
with 44 additions and 44 deletions
Loading
Loading
@@ -19,7 +19,7 @@
%td
= render partial: 'shared/hook_logs/status_label', locals: { hook_log: hook_log }
%td.d-none.d-sm-block
%span.label.label-gray.deploy-project-label
%span.badge.label-gray.deploy-project-label
= hook_log.trigger.singularize.titleize
%td
= truncate(hook_log.url, length: 50)
Loading
Loading
Loading
Loading
@@ -29,7 +29,7 @@
%div
- SystemHook.triggers.each_value do |event|
- if hook.public_send(event)
%span.label.label-gray= event.to_s.titleize
%span.label.label-gray SSL Verification: #{hook.enable_ssl_verification ? 'enabled' : 'disabled'}
%span.badge.label-gray= event.to_s.titleize
%span.badge.label-gray SSL Verification: #{hook.enable_ssl_verification ? 'enabled' : 'disabled'}
 
= render 'shared/plugins/index'
Loading
Loading
@@ -15,7 +15,7 @@
%span.badge.badge-pill
= storage_counter(project.statistics.storage_size)
- if project.archived
%span.label.label-warning archived
%span.badge.label-warning archived
.title
= link_to [:admin, project.namespace.becomes(Namespace), project] do
.dash-project-avatar
Loading
Loading
%tr{ id: dom_id(runner) }
%td
- if runner.shared?
%span.label.label-success shared
%span.badge.label-success shared
- else
%span.label.label-info specific
%span.badge.label-info specific
- if runner.locked?
%span.label.label-warning locked
%span.badge.label-warning locked
- unless runner.active?
%span.label.label-danger paused
%span.badge.label-danger paused
 
%td
= link_to admin_runner_path(runner) do
Loading
Loading
@@ -27,7 +27,7 @@
#{runner.builds.count(:all)}
%td
- runner.tag_list.sort.each do |tag|
%span.label.label-primary
%span.badge.label-primary
= tag
%td
- if runner.contacted_at
Loading
Loading
Loading
Loading
@@ -14,16 +14,16 @@
%span Each Runner can be in one of the following states:
%ul
%li
%span.label.label-success shared
%span.badge.label-success shared
\- Runner runs jobs from all unassigned projects
%li
%span.label.label-info specific
%span.badge.label-info specific
\- Runner runs jobs from assigned projects
%li
%span.label.label-warning locked
%span.badge.label-warning locked
\- Runner cannot be assigned to other projects
%li
%span.label.label-danger paused
%span.badge.label-danger paused
\- Runner will not receive any new jobs
 
.bs-callout.clearfix
Loading
Loading
Loading
Loading
@@ -5,11 +5,11 @@
.user-name.row-title.str-truncated-100
= link_to user.name, [:admin, user]
- if user.blocked?
%span.label.label-danger blocked
%span.badge.label-danger blocked
- if user.admin?
%span.label.label-success Admin
%span.badge.label-success Admin
- if user.external?
%span.label.label-default External
%span.badge.label-default External
- if user == current_user
%span It's you!
.row-second-line.str-truncated-100
Loading
Loading
Loading
Loading
@@ -17,7 +17,7 @@
%strong= link_to project.full_name, project
.float-right
- if project.archived
%span.label.label-warning archived
%span.badge.label-warning archived
%span.badge.badge-pill
= storage_counter(project.statistics.storage_size)
= link_to 'Members', project_project_members_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-sm"
Loading
Loading
Loading
Loading
@@ -33,19 +33,19 @@
%li
= render partial: 'shared/email_with_badge', locals: { email: @primary_email, verified: current_user.confirmed? }
%span.float-right
%span.label.label-success Primary email
%span.badge.label-success Primary email
- if @primary_email === current_user.public_email
%span.label.label-info Public email
%span.badge.label-info Public email
- if @primary_email === current_user.notification_email
%span.label.label-info Notification email
%span.badge.label-info Notification email
- @emails.each do |email|
%li
= render partial: 'shared/email_with_badge', locals: { email: email.email, verified: email.confirmed? }
%span.float-right
- if email.email === current_user.public_email
%span.label.label-info Public email
%span.badge.label-info Public email
- if email.email === current_user.notification_email
%span.label.label-info Notification email
%span.badge.label-info Notification email
- unless email.confirmed?
- confirm_title = "#{email.confirmation_sent_at ? 'Resend' : 'Send'} confirmation email"
= link_to confirm_title, resend_confirmation_instructions_profile_email_path(email), method: :put, class: 'btn btn-sm btn-warning prepend-left-10'
Loading
Loading
Loading
Loading
@@ -10,4 +10,4 @@
= number_to_human_size(blob.raw_size)
 
- if blob.stored_externally? && blob.external_storage == :lfs
%span.label.label-lfs.append-right-5 LFS
%span.badge.label-lfs.append-right-5 LFS
Loading
Loading
@@ -13,13 +13,13 @@
= branch.name
 
- if branch.name == @repository.root_ref
%span.label.label-primary default
%span.badge.label-primary default
- elsif merged
%span.label.label-info.has-tooltip{ title: s_('Branches|Merged into %{default_branch}') % { default_branch: @repository.root_ref } }
%span.badge.label-info.has-tooltip{ title: s_('Branches|Merged into %{default_branch}') % { default_branch: @repository.root_ref } }
= s_('Branches|merged')
 
- if protected_branch?(@project, branch)
%span.label.label-success
%span.badge.label-success
= s_('Branches|protected')
 
.block-truncated
Loading
Loading
Loading
Loading
@@ -41,14 +41,14 @@
.label-container
- if job.tags.any?
- job.tags.each do |tag|
%span.label.label-primary
%span.badge.label-primary
= tag
- if job.try(:trigger_request)
%span.label.label-info triggered
%span.badge.label-info triggered
- if job.try(:allow_failure)
%span.label.label-danger allowed to fail
%span.badge.label-danger allowed to fail
- if job.action?
%span.label.label-info manual
%span.badge.label-info manual
 
- if pipeline_link
%td
Loading
Loading
Loading
Loading
@@ -58,7 +58,7 @@
.js-commit-pipeline-status{ data: { endpoint: pipelines_project_commit_path(project, commit.id, ref: ref) } }
 
.commit-sha-group
.label.label-monospace
.badge.label-monospace
= commit.short_id
= clipboard_button(text: commit.id, title: _("Copy commit SHA to clipboard"), class: "btn btn-secondary", container: "body")
= link_to_browse_code(project, commit)
Loading
Loading
@@ -37,4 +37,4 @@
#{diff_file.a_mode}#{diff_file.b_mode}
 
- if diff_file.stored_externally? && diff_file.external_storage == :lfs
%span.label.label-lfs.append-right-5 LFS
%span.badge.label-lfs.append-right-5 LFS
Loading
Loading
@@ -35,10 +35,10 @@
.label-container
- if generic_commit_status.tags.any?
- generic_commit_status.tags.each do |tag|
%span.label.label-primary
%span.badge.label-primary
= tag
- if retried
%span.label.label-warning retried
%span.badge.label-warning retried
 
- if pipeline_link
%td
Loading
Loading
Loading
Loading
@@ -19,7 +19,7 @@
%td
= render partial: 'shared/hook_logs/status_label', locals: { hook_log: hook_log }
%td.d-none.d-sm-block
%span.label.label-gray.deploy-project-label
%span.badge.label-gray.deploy-project-label
= hook_log.trigger.singularize.titleize
%td
= truncate(hook_log.url, length: 50)
Loading
Loading
Loading
Loading
@@ -15,7 +15,7 @@
- elsif @build.tags.any?
This job is stuck, because you don't have any active runners online with any of these tags assigned to them:
- @build.tags.each do |tag|
%span.label.label-primary
%span.badge.label-primary
= tag
- else
This job is stuck, because you don't have any active runners that can run this job.
Loading
Loading
Loading
Loading
@@ -10,13 +10,13 @@
- if @merge_request.for_fork? && !@merge_request.source_project
fork project was removed
- elsif !@merge_request.source_branch_exists?
%span.label.label-inverse= @merge_request.source_branch
%span.badge.label-inverse= @merge_request.source_branch
does not exist in
%span.label.label-info= @merge_request.source_project_path
%span.badge.label-info= @merge_request.source_project_path
- elsif !@merge_request.target_branch_exists?
%span.label.label-inverse= @merge_request.target_branch
%span.badge.label-inverse= @merge_request.target_branch
does not exist in
%span.label.label-info= @merge_request.target_project_path
%span.badge.label-info= @merge_request.target_project_path
- else
of internal error
 
Loading
Loading
Loading
Loading
@@ -17,9 +17,9 @@
= icon('external-link')
- if domain.subject
%p
%span.label.label-gray Certificate: #{domain.subject}
%span.badge.label-gray Certificate: #{domain.subject}
- if domain.expired?
%span.label.label-danger Expired
%span.badge.label-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"
Loading
Loading
Loading
Loading
@@ -3,7 +3,7 @@
= link_to matching_branch.name, project_ref_path(@project, matching_branch.name), class: 'ref-name'
 
- if @project.root_ref?(matching_branch.name)
%span.label.label-info.prepend-left-5 default
%span.badge.label-info.prepend-left-5 default
%td
- commit = @project.commit(matching_branch.name)
= link_to(commit.short_id, project_commit_path(@project, commit.id), class: 'commit-sha')
Loading
Loading
Loading
Loading
@@ -5,7 +5,7 @@
%span.ref-name= protected_branch.name
 
- if @project.root_ref?(protected_branch.name)
%span.label.label-info.prepend-left-5 default
%span.badge.label-info.prepend-left-5 default
%td
- if protected_branch.wildcard?
- matching_branches = protected_branch.matching(repository.branches)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment