Skip to content
Snippets Groups Projects
Commit 7c3dfda1 authored by Olivia206's avatar Olivia206
Browse files

added partial html

parent 860ebf9f
No related branches found
No related tags found
No related merge requests found
<div class="top">
<div class="description">
<%= block_component_preview :description %>
</div>
</div>
<%
$class = "block block-partners"
unless @block.title.blank?
$class += " block-with-title"
end
$class += " block-partners--" + @block.template.layout
%>
<section class="<%= $class %>">
<div class="container">
<div class="block-content">
<% unless @block.title.blank? && @block.template.description.blank? %>
<div class="top">
<% unless @block.title.blank? %>
<h2><%= @block.title %></h2>
<% end %>
<% unless @block.template.description.blank? %>
<div class="description">
<p><%= block_component_preview :description %></p>
</div>
<% end %>
</div>
<% end %>
<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>
\ No newline at end of file
<% 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>
</div>
<% else %>
<div class="map" id="map">
<% @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>
<% end %>
</div>
</section>
\ No newline at end of file
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