Render next event on start page
This commit is contained in:
parent
5dad6d53a1
commit
70b59ef67a
3 changed files with 10 additions and 23 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<div class="row">
|
||||
<div class="span8">
|
||||
<article itemscope itemtype="http://schema.org/EducationEvent">
|
||||
<%= render 'event_header', :item => item %>
|
||||
<%= render 'event_header', :item => item, :heading => true %>
|
||||
<hr>
|
||||
<section itemprop="description">
|
||||
<%= yield %>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
<header>
|
||||
<h1 itemprop="name"><a itemprop="url" href="<%= item.path %>"><%= item[:title] %></a></h1>
|
||||
<% if heading %><h1 itemprop="name"><%= item[:title] %></h1><% end %>
|
||||
<strong>Termin:</strong>
|
||||
<span itemprop="startDate" content="<%= @item[:startdate].strftime("%Y-%m-%d") %>T19:30"><%= @item[:startdate].strftime("%d.%m.%Y") %>, 19:30 Uhr</span>
|
||||
<br />
|
||||
<% if !heading %><strong>Thema:</strong><span itemprop="name"><%= item[:title] %></span><br /><% end %>
|
||||
<div class="commaseparated">
|
||||
<strong>Referent:</strong>
|
||||
<ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue