Skip to content
Snippets Groups Projects
Commit 3a968d65 authored by Olivia206's avatar Olivia206
Browse files

added map layout condition

parents 7c3dfda1 d48414e1
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,8 @@
$class += " block-partners--" + @block.template.layout
%>
<section class="<%= $class %>">
<section class="<%= class_name %>">
<div class="container">
<div class="block-content">
<% unless @block.title.blank? && @block.template.description.blank? %>
......@@ -24,24 +25,24 @@
<% if @block.template.layout == "grid" %>
<div class="organizations">
<% @block.template.elements.each do |element| %>
<article class="organization">
<h3>
<% if element.best_url %>
<a href="<%= element.best_url %>" target="_blank">
<% end %>
<%= element.best_name %>
<% if element.best_url%>
</a>
<% end %>
</h3>
<div class="media">
<%= kamifusen_tag element.best_logo, width: 600%>
</div>
</article>
<% end %>
</div>
<% @block.template.elements.each do |element| %>
<article class="organization">
<h3>
<% if element.best_url %>
<a href="<%= element.best_url %>" target="_blank">
<% end %>
<%= element.best_name %>
<% if element.best_url%>
</a>
<% end %>
</h3>
<div class="media">
<%= kamifusen_tag element.best_logo, width: 600%>
</div>
</article>
<% end %>
</div>
<% else %>
<div class="map" id="map">
<% @block.template.elements.each do |element| %>
......
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