Moves social tags outside cache on budget stats

This commit is contained in:
decabeza
2018-07-12 16:47:52 +02:00
committed by Javi Martín
parent a889f62f68
commit 7b2495845d

View File

@@ -1,14 +1,14 @@
<% cache [@stats] do %>
<% provide :title do %>
<%= t("budgets.stats.page_title", budget: @budget.name) %>
<% end %>
<% provide :social_media_meta_tags do %>
<%= render "shared/social_media_meta_tags",
social_url: budget_url(@budget),
social_title: @budget.name,
social_description: @budget.description_finished %>
<% end %>
<% provide :title do %>
<%= t("budgets.stats.page_title", budget: @budget.name) %>
<% end %>
<% provide :social_media_meta_tags do %>
<%= render "shared/social_media_meta_tags",
social_url: budget_url(@budget),
social_title: @budget.name,
social_description: @budget.description_finished %>
<% end %>
<% cache [@stats] do %>
<div class="budgets-stats">
<div class="expanded no-margin-top padding header">
<div class="row">