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">
|
<div class="well well-large">
|
||||||
<article itemscope itemtype="http://schema.org/EducationEvent">
|
<article itemscope itemtype="http://schema.org/EducationEvent">
|
||||||
<h1><a href="#">Nächster Vortrag</a></h1>
|
<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>
|
<p>
|
||||||
<a itemprop="url" href="<%= upcomingEvents[0].path() %>">Weitere Informationen</a> -
|
<a itemprop="url" href="<%= upcomingEvents[0].path() %>">Weitere Informationen</a> -
|
||||||
<a href="#">Flyer (PDF)</a> -
|
<a href="#">Flyer (PDF)</a> -
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,9 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<% @item[:archiveitems].each do |item| %>
|
<% @item[:archiveitems].each do |item| %>
|
||||||
<div class="span8">
|
<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>
|
<p>
|
||||||
<a href="<%= item.path() %>">Zum Artikel</a>
|
<a href="<%= item.path() %>">Zum Artikel</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<article itemscope itemtype="http://schema.org/EducationEvent">
|
<article itemscope itemtype="http://schema.org/EducationEvent">
|
||||||
<%= render 'event_header', :item => item, :heading => true %>
|
<%= render 'event_header', :item => item, :heading => true, :link => false %>
|
||||||
<hr>
|
<hr>
|
||||||
<section itemprop="description">
|
<section itemprop="description">
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
<header>
|
<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>
|
<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>
|
<span itemprop="startDate" content="<%= @item[:startdate].strftime("%Y-%m-%d") %>T19:30"><%= @item[:startdate].strftime("%d.%m.%Y") %>, 19:30 Uhr</span>
|
||||||
<br />
|
<br />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue