Commit 4f8fb373 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'home-panel-cache-fix' into 'master'

Remove badge cache from home panel

See merge request gitlab-org/gitlab!65638
parents 7ddd6d28 19e12bea
...@@ -88,12 +88,11 @@ ...@@ -88,12 +88,11 @@
= render_if_exists "projects/home_mirror" = render_if_exists "projects/home_mirror"
- if @project.badges.present? - if @project.badges.present?
= cache_if(cache_enabled, [@project, :badges], expires_in: 1.day) do .project-badges.mb-2
.project-badges.mb-2 - @project.badges.each do |badge|
- @project.badges.each do |badge| %a.gl-mr-3{ href: badge.rendered_link_url(@project),
%a.gl-mr-3{ href: badge.rendered_link_url(@project), target: '_blank',
target: '_blank', rel: 'noopener noreferrer' }>
rel: 'noopener noreferrer' }> %img.project-badge{ src: badge.rendered_image_url(@project),
%img.project-badge{ src: badge.rendered_image_url(@project), 'aria-hidden': true,
'aria-hidden': true, alt: 'Project badge' }>
alt: 'Project badge' }>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment