File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
better_together/content/blocks Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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 %>
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 %>
Original file line number Diff line number Diff line change 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 ">
Original file line number Diff line number Diff line change 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? %>
88 <%= host_community . name %>
99 <% end %>
1010 <% end %>
11- <%# end %>
11+ <% end %>
You can’t perform that action at this time.
0 commit comments