BigW Consortium Gitlab

_commit.html.haml 1.05 KB
Newer Older
1 2
%li.commit.js-toggle-container
  .commit-row-title
3
    %strong.str-truncated
Vinnie Okada committed
4
      = link_to_gfm commit.title, namespace_project_commit_path(project.namespace, project, commit.id), class: "commit-row-message"
5
      - if commit.description?
Dmitriy Zaporozhets committed
6
        %a.text-expander.js-toggle-button ...
7

8
    .pull-right
9
      = link_to commit.short_id, namespace_project_commit_path(project.namespace, project, commit), class: "commit_short_id"
10

11
    .notes_count
12 13 14
      - if @note_counts
        - note_count = @note_counts.fetch(commit.id, 0)
      - else
15
        - notes = commit.notes
16
        - note_count = notes.user.count
17 18

      - if note_count > 0
19 20 21
        %span.light
          %i.fa.fa-comments
          = note_count
22

23
  - if commit.description?
24
    .commit-row-description.js-toggle-content
25
      %pre
skv committed
26
        = preserve(gfm(escape_once(commit.description)))
27

28
  .commit-row-info
29
    = commit_author_link(commit, avatar: true, size: 24)
30
    authored
31
    .committed_ago
32
      #{time_ago_with_tooltip(commit.committed_date, skip_js: true)}  
33
    = link_to_browse_code(project, commit)