Comma-separated list of speakers

This commit is contained in:
Stefan Schlott 2013-08-24 16:52:47 +02:00
parent 37cfd0faa6
commit 21257425e0
3 changed files with 35 additions and 2 deletions

View file

@ -1,12 +1,12 @@
--- ---
kind: event kind: event
startdate: 2003-02-14 19:30 startdate: 2003-02-14T19:30:00
duration: 2h duration: 2h
title: "Über die besonderen Anforderungen beim Sammeln von historischen Großrechnern" title: "Über die besonderen Anforderungen beim Sammeln von historischen Großrechnern"
speakers: speakers:
- -
name: Wolfgang Stief name: Wolfgang Stief
affiliaton: GUUG München affiliation: GUUG München
location: location:
location: bib location: bib
details: Max-Bense-Forum (UG) details: Max-Bense-Forum (UG)

View file

@ -113,4 +113,17 @@ ul.horizontal {
} }
} }
.commaseparated {
display: inline;
list-style: none;
li {
isplay: inline;
}
li:after {
content: ", ";
}
li:last-child:after {
content: "";
}
}

View file

@ -5,6 +5,26 @@
<article itemscope itemtype="http://schema.org/EducationEvent"> <article itemscope itemtype="http://schema.org/EducationEvent">
<header> <header>
<h1 itemprop="name"><%= item[:title] %></h1> <h1 itemprop="name"><%= item[:title] %></h1>
<p>
<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>
</p>
<p>
<strong>Referent:</strong>
<ul class="commaseparated">
<% @item[:speakers].each do |speaker| %>
<li itemprop="performer" itemscope itemtype="http://schema.org/Person">
<span itemprop="name"><%= speaker[:name] %></span><% if speaker[:affiliation]%> (<%= speaker[:affiliation] %>)<% end %>
</li>
<% end %>
</ul>
</p>
<p>
<strong>Ort:</strong>
<span itemprop="location" itemscope itemtype="http://schema.org/Location">
<span itemprop="name">Stadtbibliothek am Mailänder Platz</span>, Max-Bense-Forum (UG)
</span>
</p>
</header> </header>
<section itemprop="description"> <section itemprop="description">
<%= yield %> <%= yield %>