summaryrefslogtreecommitdiff
path: root/app/views/shared/projects/_project.html.haml
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-03-14 13:35:46 +0100
committerBob Van Landuyt <bob@gitlab.com>2017-03-16 12:31:27 +0100
commita33fbb3c83bb1663fa63ce42ced54926f050b8dc (patch)
tree93129c624b3370856e1df2df3cc8a40010934717 /app/views/shared/projects/_project.html.haml
parent4b249d522c0077113745225fe945d8629c58fa34 (diff)
downloadgitlab-ce-a33fbb3c83bb1663fa63ce42ced54926f050b8dc.tar.gz
Render cached pipeline status on project dashboard
Diffstat (limited to 'app/views/shared/projects/_project.html.haml')
-rw-r--r--app/views/shared/projects/_project.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/shared/projects/_project.html.haml b/app/views/shared/projects/_project.html.haml
index 7e9fb7bb4d3..d1af6fe8d8d 100644
--- a/app/views/shared/projects/_project.html.haml
+++ b/app/views/shared/projects/_project.html.haml
@@ -7,16 +7,16 @@
- show_last_commit_as_description = false unless local_assigns[:show_last_commit_as_description] == true && project.commit
- css_class += " no-description" if project.description.blank? && !show_last_commit_as_description
- cache_key = [project.namespace, project, controller.controller_name, controller.action_name, current_application_settings, 'v2.3']
-- cache_key.push(project.commit&.sha, project.commit&.status)
+- cache_key.push(project.pipeline_status) if project.pipeline_status.has_status?
%li.project-row{ class: css_class }
= cache(cache_key) do
.controls
- if project.archived
%span.label.label-warning archived
- - if project.commit.try(:status)
+ - if project.pipeline_status.has_status?
%span
- = render_commit_status(project.commit)
+ = render_project_pipeline_status(project.pipeline_status)
- if forks
%span
= icon('code-fork')