diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-15 19:02:29 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-15 19:02:29 +0200 |
commit | 9fd48229860636fecc07d3dde7cb4fe7624ce8f9 (patch) | |
tree | 9e4dc4544ba831827d6da2f8fa7590b5b11e362e /app/views/projects/_last_commit.html.haml | |
parent | 19cfa86aa3db83fcd90f3dd967c18ad3cd3e729e (diff) | |
download | gitlab-ce-9fd48229860636fecc07d3dde7cb4fe7624ce8f9.tar.gz |
Show last commit from default branch on project home page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/_last_commit.html.haml')
-rw-r--r-- | app/views/projects/_last_commit.html.haml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/projects/_last_commit.html.haml b/app/views/projects/_last_commit.html.haml new file mode 100644 index 00000000000..0c16c3ccbf7 --- /dev/null +++ b/app/views/projects/_last_commit.html.haml @@ -0,0 +1,12 @@ +.project-last-commit + - ci_commit = project.ci_commit(commit.sha) + - if ci_commit + = link_to ci_status_path(ci_commit), class: "ci-status ci-#{ci_commit.status}" do + = ci_status_icon(ci_commit) + = ci_commit.status + + = link_to_gfm commit.title, namespace_project_commit_path(project.namespace, project, commit.id), class: "commit-row-message" + = link_to commit.short_id, namespace_project_commit_path(project.namespace, project, commit), class: "commit_short_id" + · + #{time_ago_with_tooltip(commit.committed_date, skip_js: true)} by + = commit_author_link(commit, avatar: true, size: 24) |