summaryrefslogtreecommitdiff
path: root/app/views/projects/_last_commit.html.haml
blob: d104cc7c1a32d5106b3bae37caff15f8e72cd5c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- ref = local_assigns.fetch(:ref)
- status = commit.status(ref)
- if status
  = link_to pipelines_namespace_project_commit_path(commit.project.namespace, commit.project, commit), class: "ci-status ci-#{status}" do
    = ci_icon_for_status(status)
    = ci_text_for_status(status)

= link_to commit.short_id, namespace_project_commit_path(project.namespace, project, commit), class: "commit-sha"
= link_to_gfm commit.title, namespace_project_commit_path(project.namespace, project, commit), class: "commit-row-message"
·
#{time_ago_with_tooltip(commit.committed_date)} by
= commit_author_link(commit, avatar: true, size: 24)