diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-21 22:17:14 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-21 22:17:14 +0200 |
commit | ec586042e0f23696f0b3b34a7e7d5bf7c36ea2c7 (patch) | |
tree | 8d470e255e3976bed20072a1020dcad8bb0d71e0 /app/views | |
parent | ff986c7040f594f19225274896fdbaa34bc8a713 (diff) | |
download | gitlab-ce-ec586042e0f23696f0b3b34a7e7d5bf7c36ea2c7.tar.gz |
Fix lastest commit status text on main project page
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/_last_commit.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/_last_commit.html.haml b/app/views/projects/_last_commit.html.haml index e1fea8ccf3d..df3b1c75508 100644 --- a/app/views/projects/_last_commit.html.haml +++ b/app/views/projects/_last_commit.html.haml @@ -1,10 +1,9 @@ - - 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_label_for_status(status) + = ci_text_for_status(status) = link_to commit.short_id, namespace_project_commit_path(project.namespace, project, commit), class: "commit_short_id" = link_to_gfm commit.title, namespace_project_commit_path(project.namespace, project, commit), class: "commit-row-message" |