Add endtime render to event
This commit is contained in:
parent
fc5a3ca018
commit
197c7d9084
1 changed files with 22 additions and 1 deletions
|
@ -57,7 +57,28 @@
|
|||
<%= item[:description] %>
|
||||
</p>
|
||||
<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>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue