Skip to content

Commit 2643cfe

Browse files
committed
re-enable disabled image cache statements after switching to active storage proxy
1 parent 7e31b09 commit 2643cfe

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/views/better_together/content/blocks/_image.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<%= render layout: 'better_together/content/blocks/block', locals: { block: image } do %>
2-
<%# cache image.cache_key_with_version do %>
2+
<%= cache image.cache_key_with_version do %>
33
<% if image.caption.present? || image.attribution.present? %>
44
<figure class="figure text-center w-100"> <!-- Added text-center to center the content -->
55
<%= image_tag image.url, class: 'figure-img img-fluid d-block mx-auto', alt: image.alt_text %>
@@ -27,5 +27,5 @@
2727
<% else %>
2828
<%= image_tag image.url, class: 'img-fluid d-block mx-auto', alt: image.alt_text %> <!-- Ensured the image is centered -->
2929
<% end %>
30-
<%# end %>
30+
<% end %>
3131
<% end %>

app/views/layouts/better_together/_header.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
<% end %>
5353
</li>
5454

55-
<%# cache ['user_nav', current_identity.cache_key_with_version] do %>
55+
<%= cache ['user_nav', current_identity.cache_key_with_version] do %>
5656
<%= render 'layouts/better_together/user_nav' %>
57-
<%# end %>
57+
<% end %>
5858
<% else %>
5959
<!-- If user is not signed in, show 'Sign In' -->
6060
<li class="nav-item">
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<%# cache ['header_branding', host_community.cache_key_with_version] do %>
2+
<%= cache ['header_branding', host_community.cache_key_with_version] do %>
33
<!-- Branding Element -->
44
<%= link_to base_path_with_locale, class: 'navbar-brand' do %>
55
<% if host_community.logo.attached? %>
@@ -8,4 +8,4 @@
88
<%= host_community.name %>
99
<% end %>
1010
<% end %>
11-
<%# end %>
11+
<% end %>

0 commit comments

Comments
 (0)