2016-07-18 11:06:45 +02:00
|
|
|
<% content_for :head do %>
|
2016-10-08 22:25:19 +02:00
|
|
|
<meta property="og:image" content="<%= item[:image] %>" />
|
2016-07-18 11:15:03 +02:00
|
|
|
<meta property="og:title" content="<%= item[:title] %>" />
|
2016-07-19 13:55:27 +02:00
|
|
|
<meta property="og:type" content="article" />
|
|
|
|
<meta property="og:url" content="<%= url_for(item) %>" />
|
2016-10-10 19:16:08 +02:00
|
|
|
<meta property="og:description" content="<%= item[:description] %>" />
|
|
|
|
<meta property="og:site_name" content="Zeus WPI" />
|
|
|
|
<meta name="twitter:label1" value="Time" />
|
|
|
|
<meta name="twitter:data1" value="<%= item[:time].strftime '%A %d %B %Y %H:%M' %>" />
|
|
|
|
<meta name="twitter:label2" value="Place" />
|
|
|
|
<meta name="twitter:data2" value="<%= item[:location] %>" />
|
|
|
|
<meta name="twitter:card" content="summary_large_image" />
|
2016-07-18 11:06:45 +02:00
|
|
|
<% end %>
|
|
|
|
|
2016-10-08 22:25:19 +02:00
|
|
|
<% if item[:banner] %>
|
2016-10-10 13:59:06 +02:00
|
|
|
<section class="hero is-medium is-primary is-bold" style="background-image:url('<%= item[:banner] %>');background-position:center;">
|
2016-10-08 22:25:19 +02:00
|
|
|
<% else %>
|
2016-10-03 20:52:01 +02:00
|
|
|
<section class="hero is-medium is-primary is-bold">
|
2016-10-08 22:25:19 +02:00
|
|
|
<% end %>
|
2016-07-27 20:27:28 +02:00
|
|
|
<div class="hero-head">
|
2016-09-02 00:05:38 +02:00
|
|
|
<%= render '/partials/_navbar.*', zeus_logo_color: :white %>
|
2016-07-12 23:58:08 +02:00
|
|
|
</div>
|
2016-10-03 19:21:29 +02:00
|
|
|
<div class="hero-body">
|
2016-07-27 20:27:28 +02:00
|
|
|
<div class="container">
|
2016-09-13 17:13:43 +02:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<p class="title is-1">
|
2016-10-03 19:21:29 +02:00
|
|
|
<b>
|
|
|
|
<%= item[:title] %>
|
|
|
|
</b>
|
2016-10-09 01:57:21 +02:00
|
|
|
<span class="event-social-icons">
|
|
|
|
<% if item[:facebook] %>
|
|
|
|
<a href="<%= item[:facebook] %>">
|
|
|
|
<%= fa :facebook %>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
|
|
|
<a href="<%= item.path rep: :ical %>">
|
|
|
|
<%= fa :calendar %>
|
|
|
|
</a>
|
|
|
|
</span>
|
2016-09-13 17:13:43 +02:00
|
|
|
</p>
|
|
|
|
<p class="subtitle is-3">
|
2016-10-03 19:21:29 +02:00
|
|
|
<%= item[:description] %>
|
2016-09-13 17:13:43 +02:00
|
|
|
</p>
|
|
|
|
<p class="subtitle is-3">
|
2016-10-04 22:04:34 +02:00
|
|
|
<ul class="fa-ul event-attributes">
|
2016-10-09 01:57:21 +02:00
|
|
|
<li><%= fa 'clock-o', li: true %><%= item[:time].strftime '%A %d %B %Y %H:%M' %></li>
|
2016-10-03 22:33:52 +02:00
|
|
|
<li><%= fa 'map-marker', li: true %><%= item[:location] %></li>
|
2016-10-03 19:21:29 +02:00
|
|
|
</ul>
|
2016-09-13 17:13:43 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="is-narrow column banner-image">
|
2016-10-08 22:25:19 +02:00
|
|
|
<img src="<%= item[:image] %>" >
|
2016-09-13 17:13:43 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-07-27 20:27:28 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="section">
|
|
|
|
<div class="columns">
|
2016-08-27 20:15:00 +02:00
|
|
|
<div class="column is-8 is-offset-2">
|
2016-10-03 19:21:29 +02:00
|
|
|
<div class="content has-text-justified is-medium">
|
2016-07-28 17:56:33 +02:00
|
|
|
<%= yield %>
|
|
|
|
</div>
|
2016-07-12 23:58:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-02 00:05:38 +02:00
|
|
|
<div class="columns">
|
2016-09-03 23:36:37 +02:00
|
|
|
<div class="google-maps column is-8 is-offset-2">
|
2016-12-29 13:37:22 +01:00
|
|
|
<iframe frameborder="0" style="border:0" src="<%= locationlink item[:locationlink] %>" allowfullscreen> </iframe>
|
2016-09-02 00:05:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-07-27 20:27:28 +02:00
|
|
|
</section>
|