diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-03-14 15:35:46 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-03-16 14:31:27 +0300 |
commit | a33fbb3c83bb1663fa63ce42ced54926f050b8dc (patch) | |
tree | 93129c624b3370856e1df2df3cc8a40010934717 /app/views/shared/projects | |
parent | 4b249d522c0077113745225fe945d8629c58fa34 (diff) |
Render cached pipeline status on project dashboard
Diffstat (limited to 'app/views/shared/projects')
-rw-r--r-- | app/views/shared/projects/_project.html.haml | 6 |
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') |