Render next event on start page

This commit is contained in:
Stefan Schlott 2013-08-25 13:49:25 +02:00
parent 5dad6d53a1
commit 70b59ef67a
3 changed files with 10 additions and 23 deletions

View file

@ -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 %>

View file

@ -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>