summaryrefslogtreecommitdiff
path: root/app/views/projects/commits
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-10-27 01:37:41 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-10-27 01:37:41 +0800
commit6f6a8d2a671cf3bc2df2832081f528d9b06e27be (patch)
treecbfeba0e5ac9ef137c343438a7e14e9558ee26aa /app/views/projects/commits
parentb4ef158a63807c850c1a17c75d66cd166c309047 (diff)
downloadgitlab-ce-6f6a8d2a671cf3bc2df2832081f528d9b06e27be.tar.gz
Also update for default project page, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7034#note_17397573
Diffstat (limited to 'app/views/projects/commits')
-rw-r--r--app/views/projects/commits/_commit.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml
index 9303243b119..c5830b5b7f7 100644
--- a/app/views/projects/commits/_commit.html.haml
+++ b/app/views/projects/commits/_commit.html.haml
@@ -18,14 +18,14 @@
%span.commit-row-message.visible-xs-inline
&middot;
= commit.short_id
- - if commit.status
+ - if commit.status_for(ref)
.visible-xs-inline
= render_commit_status(commit, ref: ref)
- if commit.description?
%a.text-expander.hidden-xs.js-toggle-button ...
.commit-actions.hidden-xs
- - if commit.status
+ - if commit.status_for(ref)
= render_commit_status(commit, ref: ref)
= clipboard_button(clipboard_text: commit.id)
= link_to commit.short_id, namespace_project_commit_path(project.namespace, project, commit), class: "commit-short-id btn btn-transparent"