Skip to content
Snippets Groups Projects
Unverified Commit 110aa9d5 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix block snippet, use block.website instead of instance variable which may not be set

parent d4af45fe
No related branches found
No related tags found
No related merge requests found
<% if block.template.mode == 'categories' %>
<p>
<%= @website.agenda_categories
<%= block.website.agenda_categories
.map { |category| category.to_s_in(block.language) }
.join(', ') %>
......
<% if block.template.mode == 'categories' %>
<% @website.post_categories.ordered(current_language).each do |category| %>
<% block.website.post_categories.ordered(current_language).each do |category| %>
<p><%= category.to_s_in(current_language) %></p>
<% end if @website%>
<% end if block.website %>
<% else %>
<% block.template.selected_posts.each do |post|
l10n = post.localization_for(block.language)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment