zeus.ugent.be/layouts/eventpost.erb
2016-08-27 20:15:00 +02:00

46 lines
1.2 KiB
Text

<% content_for :head do %>
<meta property="og:image" content="<%= item[:banner] %>" />
<meta property="og:title" content="<%= item[:title] %>" />
<meta property="og:type" content="article" />
<meta property="og:url" content="<%= url_for(item) %>" />
<% end %>
<section class="hero is-medium is-info">
<div class="hero-head">
<%= render '/partials/_navbar.*' %>
</div>
<div class="hero-body">
<div class="container">
<h1 class="title">
<%= item[:title] %>
</h1>
<h2 class="subtitle">
<ul class="fa-ul">
<li><%= fa 'clock-o', li: true %><%= item[:time] %></li>
<li><%= fa 'globe', li: true %><%= item[:location] %></li>
</ul>
</h2>
</div>
</div>
</section>
<section class="section">
<div class="columns">
<!--
<div id="event-info" class="column">
<div class="box">
<ul class="fa-ul">
<li><%= fa 'clock-o', li: true %><%= item[:time] %></li>
<li><%= fa 'globe', li: true %><%= item[:location] %></li>
</ul>
</div>
</div>
-->
<div class="column is-8 is-offset-2">
<div class="content">
<%= yield %>
</div>
</div>
</div>
</section>