Event archive page
This commit is contained in:
parent
9e8d6344a1
commit
5ad6fafb7a
4 changed files with 12 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ feed:
|
|||
<div class="well well-large">
|
||||
<article itemscope itemtype="http://schema.org/EducationEvent">
|
||||
<h1><a href="#">Nächster Vortrag</a></h1>
|
||||
<%= render 'event_header', :item => upcomingEvents[0], :heading => false %>
|
||||
<%= render 'event_header', :item => upcomingEvents[0], :heading => false, :link => false %>
|
||||
<p>
|
||||
<a itemprop="url" href="<%= upcomingEvents[0].path() %>">Weitere Informationen</a> -
|
||||
<a href="#">Flyer (PDF)</a> -
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
<div class="row">
|
||||
<% @item[:archiveitems].each do |item| %>
|
||||
<div class="span8">
|
||||
<%= render 'item_intro', :item => item, :extended => true %>
|
||||
<article itemscope itemtype="http://schema.org/EducationEvent">
|
||||
<%= render 'event_header', :item => item, :heading => true, :link => true %>
|
||||
</article>
|
||||
<p>
|
||||
<a href="<%= item.path() %>">Zum Artikel</a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<div class="row">
|
||||
<div class="span8">
|
||||
<article itemscope itemtype="http://schema.org/EducationEvent">
|
||||
<%= render 'event_header', :item => item, :heading => true %>
|
||||
<%= render 'event_header', :item => item, :heading => true, :link => false %>
|
||||
<hr>
|
||||
<section itemprop="description">
|
||||
<%= yield %>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
<header>
|
||||
<% if heading %><h1 itemprop="name"><%= item[:title] %></h1><% end %>
|
||||
<% if heading %>
|
||||
<% if link %>
|
||||
<h1 itemprop="name"><a itemProp="url" href="<%= item.path() %>"><%= item[:title] %></a></h1>
|
||||
<% else %>
|
||||
<h1 itemprop="name"><%= item[:title] %></h1>
|
||||
<% end %>
|
||||
<% 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 />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue