summaryrefslogtreecommitdiff
path: root/app/views/projects/badges/index.html.haml
blob: c22384ddf46c8b1052f7f9463a220474b4f50ca1 (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
- page_title 'Badges'
- badges_path = namespace_project_badges_path(@project.namespace, @project)
- header_title project_title(@project, 'Badges', badges_path)

.prepend-top-10
  .panel.panel-default
    .panel-heading
      %b Builds badge ·
      = @build_badge.to_html
      .pull-right
        = render 'shared/ref_switcher', destination: 'badges'
    .panel-body
      .row
        .col-md-2.text-center
          Markdown
        .col-md-10.code.js-syntax-highlight
          = highlight('.md', @build_badge.to_markdown)
      .row
        %hr
      .row
        .col-md-2.text-center
          HTML
        .col-md-10.code.js-syntax-highlight
          = highlight('.html', @build_badge.to_html)