summaryrefslogtreecommitdiff
path: root/app/views/projects/settings/ci_cd/_badge.html.haml
blob: d14360913a45b832c6d1fdab79b39d2605586ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
%div{ class: badge.title.gsub(' ', '-') }
  .col-lg-12
    %h4
      = badge.title.capitalize
    .card
      .card-header
        %b
          = badge.title.capitalize
          ·
        = badge.to_html
        .float-right
          = render 'shared/ref_switcher', destination: 'badges', align_right: true
      .card-body
        .row
          .col-md-2.text-center
            Markdown
          .col-md-10.code.js-syntax-highlight
            = highlight('.md', badge.to_markdown)
        .row
          %hr
        .row
          .col-md-2.text-center
            HTML
          .col-md-10.code.js-syntax-highlight
            = highlight('.html', badge.to_html)
        .row
          %hr
        .row
          .col-md-2.text-center
            AsciiDoc
          .col-md-10.code.js-syntax-highlight
            = highlight('.adoc', badge.to_asciidoc)