Add endtime render to event

This commit is contained in:
mcbloch 2020-10-11 05:07:08 +02:00
parent fc5a3ca018
commit 197c7d9084

View file

@ -57,7 +57,28 @@
<%= item[:description] %> <%= item[:description] %>
</p> </p>
<ul class="fa-ul is-4-responsive"> <ul class="fa-ul is-4-responsive">
<li><%= fa 'clock-o', li: true %><%= item[:time].strftime '%A %d %B %Y %H:%M' %></li> <li>
<%= fa 'clock-o', li: true %>
<%= item[:time].strftime '%A %d %B %Y %H:%M' %>
<% if item[:end] %>
<span>
-
</span>
<% if (item[:end].strftime '%d %B %Y') != (item[:time].strftime '%d %B %Y') %>
<span>
<%= item[:end].strftime '%d %B ' %>
</span>
<% end %>
<% if (item[:end].strftime '%Y') != (item[:time].strftime '%Y') %>
<span>
<%= item[:end].strftime '%Y ' %>
</span>
<% end %>
<span>
<%= item[:end].strftime '%H:%M' %>
</span>
<% end %>
</li>
<li><%= fa 'map-marker', li: true %><%= item[:location] %></li> <li><%= fa 'map-marker', li: true %><%= item[:location] %></li>
</ul> </ul>
</div> </div>