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

45 lines
1.3 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 %>
<!--
<img class="pure-img" id="event-banner" src="<%= item[:banner] %>" alt="" />
-->
<section class="hero is-medium is-primary is-bold">
<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><i class="fa-li fa fa-clock-o"></i><%= item[:time] %></li>
<li><i class="fa-li fa fa-globe"></i><%= item[:location] %></li>
</ul>
</h2>
</div>
</div>
</section>
<section class="section">
<div class="columns">
<!-- Wrapper needed to add some padding to the grid class -->
<div class="content container">
<%= yield %>
</div>
<div id="event-info" class="column is-one-quarter content">
<ul class="fa-ul">
<li><i class="fa-li fa fa-clock-o"></i><%= item[:time] %></li>
<li><i class="fa-li fa fa-globe"></i><%= item[:location] %></li>
</ul>
</div>
</div>
</section>
<script src="/assets/scripts/eventpost.js"></script>