Format speakers properly

This commit is contained in:
Stefan Schlott 2013-08-24 20:40:00 +02:00
parent 21257425e0
commit d7ecadd47f
3 changed files with 19 additions and 15 deletions

View file

@ -7,6 +7,8 @@ speakers:
- -
name: Wolfgang Stief name: Wolfgang Stief
affiliation: GUUG München affiliation: GUUG München
-
name: Hugo Hansel
location: location:
location: bib location: bib
details: Max-Bense-Forum (UG) details: Max-Bense-Forum (UG)

View file

@ -113,11 +113,16 @@ ul.horizontal {
} }
} }
.commaseparated { div.commaseparated {
clear: both;
}
ul.commaseparated {
display: inline; display: inline;
list-style: none; list-style-type: none;
margin: 0;
li { li {
isplay: inline; display: inline;
} }
li:after { li:after {
content: ", "; content: ", ";

View file

@ -5,11 +5,10 @@
<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>
<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 />
</p> <div class="commaseparated">
<p>
<strong>Referent:</strong> <strong>Referent:</strong>
<ul class="commaseparated"> <ul class="commaseparated">
<% @item[:speakers].each do |speaker| %> <% @item[:speakers].each do |speaker| %>
@ -18,13 +17,11 @@
</li> </li>
<% end %> <% end %>
</ul> </ul>
</p> </div>
<p> <strong>Ort:</strong>
<strong>Ort:</strong> <span itemprop="location" itemscope itemtype="http://schema.org/Location">
<span itemprop="location" itemscope itemtype="http://schema.org/Location"> <span itemprop="name">Stadtbibliothek am Mailänder Platz</span>, Max-Bense-Forum (UG)
<span itemprop="name">Stadtbibliothek am Mailänder Platz</span>, Max-Bense-Forum (UG) </span>
</span>
</p>
</header> </header>
<section itemprop="description"> <section itemprop="description">
<%= yield %> <%= yield %>