BigW Consortium Gitlab

_stats.html.haml 1.12 KB
Newer Older
1 2 3
.js-toggle-container
  .commit-stat-summary
    Showing
4
    = link_to '#', class: 'js-toggle-button' do
5 6
      %strong #{pluralize(diff_files.count, "changed file")}
    with
7
    %strong.cgreen #{diff_files.sum(&:added_lines)} additions
8
    and
9
    %strong.cred #{diff_files.sum(&:removed_lines)} deletions
10
  .file-stats.js-toggle-content.hide
11
    %ul
12
      - diff_files.each_with_index do |diff_file, i|
13
        %li
14
          - if diff_file.deleted_file
15 16
            %span.deleted-file
              %a{href: "#diff-#{i}"}
17
                %i.fa.fa-minus
18 19
                = diff_file.old_path
          - elsif diff_file.renamed_file
20 21
            %span.renamed-file
              %a{href: "#diff-#{i}"}
22
                %i.fa.fa-minus
23
                = diff_file.old_path
24
                →
25 26
                = diff_file.new_path
          - elsif diff_file.new_file
27 28
            %span.new-file
              %a{href: "#diff-#{i}"}
29
                %i.fa.fa-plus
30
                = diff_file.new_path
31 32 33
          - else
            %span.edit-file
              %a{href: "#diff-#{i}"}
34
                %i.fa.fa-adjust
35
                = diff_file.new_path
36