summaryrefslogtreecommitdiff
path: root/app/views/commits/show.html.haml
blob: cb8b866a7171fc4eb2838fa1b9903d7af4f1b7a0 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
%h4.page-title
  = @project.name
  @
  #{gitlab_commit_link(@project, @commit.sha)}
%p
  = link_to project_path(@project) do
    ← Back to project commits
%hr
.commit-info
  %pre.commit-message
    #{@commit.git_commit_message}

  .row
    .col-sm-6
      - if @commit.compare?
        %p
          %span.attr-name Compare:
          #{gitlab_compare_link(@project, @commit.short_before_sha, @commit.short_sha)}
      - else
        %p
          %span.attr-name Commit:
          #{gitlab_commit_link(@project, @commit.sha)}

      %p
        %span.attr-name Branch:
        #{gitlab_ref_link(@project, @commit.ref)}
    .col-sm-6
      %p
        %span.attr-name Author:
        #{@commit.git_author_name} (#{@commit.git_author_email})
      - if @commit.created_at
        %p
          %span.attr-name Created at:
          #{@commit.created_at.to_s(:short)}


%h3 Status

.build.alert{class: commit_status_alert_class(@commit)}
  .status
    = @commit.status.titleize

%h3
  Builds
  - if @commit.duration > 0
    %small.pull-right
      %i.icon-time
      #{time_interval_in_words @commit.duration}

%table.builds
  %thead
    %tr
      %th Status
      %th Build ID
      %th Trigger
      %th Job
      %th Duration
      %th Finished at
      - if @project.coverage_enabled?
        %th Coverage
      %th
  = render @commit.builds_without_retry, controls: true

- if @commit.retried_builds.any?
  %h3
    Retried builds

  %table.builds
    %thead
      %tr
        %th Status
        %th Build ID
        %th Trigger
        %th Job
        %th Duration
        %th Finished at
        - if @project.coverage_enabled?
          %th Coverage
        %th
    = render @commit.retried_builds