debian-mirror-gitlab/app/views/projects/settings/ci_cd/_badge.html.haml
2023-07-09 08:55:56 +05:30

32 lines
1.2 KiB
Text

%div{ class: badge.title.gsub(' ', '-') }
.col-lg-12
%h4
= badge.title.capitalize
= render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5' }, header_options: { class: 'gl-display-flex gl-align-items-center' }) do |c|
- c.with_header do
.gl-flex-grow-1
%b
= badge.title.capitalize
·
= badge.to_html
.js-ref-switcher-badge{ id: "js-project-ci-cd-ref-switcher-#{badge.title.parameterize(separator: '-') }", data: { project_id: @project.id, ref: @ref } }
- c.with_body do
.row
.col-md-2.gl-text-center
Markdown
.col-md-10.code.js-syntax-highlight
= highlight_badge('.md', badge.to_markdown, language: 'markdown')
.row
%hr
.row
.col-md-2.gl-text-center
HTML
.col-md-10.code.js-syntax-highlight
= highlight_badge('.html', badge.to_html, language: 'html')
.row
%hr
.row
.col-md-2.gl-text-center
AsciiDoc
.col-md-10.code.js-syntax-highlight
= highlight_badge('.adoc', badge.to_asciidoc)