Generate event data from metadata
This commit is contained in:
parent
73ece643ca
commit
712bf61da2
2 changed files with 32 additions and 18 deletions
|
|
@ -115,9 +115,7 @@ ul.horizontal {
|
||||||
|
|
||||||
div.commaseparated {
|
div.commaseparated {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
ul {
|
||||||
|
|
||||||
ul.commaseparated {
|
|
||||||
display: inline;
|
display: inline;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
@ -130,5 +128,6 @@ ul.commaseparated {
|
||||||
li:last-child:after {
|
li:last-child:after {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<br />
|
<br />
|
||||||
<div class="commaseparated">
|
<div class="commaseparated">
|
||||||
<strong>Referent:</strong>
|
<strong>Referent:</strong>
|
||||||
<ul class="commaseparated">
|
<ul>
|
||||||
<% @item[:speakers].each do |speaker| %>
|
<% @item[:speakers].each do |speaker| %>
|
||||||
<li itemprop="performer" itemscope itemtype="http://schema.org/Person">
|
<li itemprop="performer" itemscope itemtype="http://schema.org/Person">
|
||||||
<span itemprop="name"><%= speaker[:name] %></span><% if speaker[:affiliation]%> (<%= speaker[:affiliation] %>)<% end %>
|
<span itemprop="name"><%= speaker[:name] %></span><% if speaker[:affiliation]%> (<%= speaker[:affiliation] %>)<% end %>
|
||||||
|
|
@ -18,10 +18,25 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="commaseparated">
|
||||||
<strong>Ort:</strong>
|
<strong>Ort:</strong>
|
||||||
<span itemprop="location" itemscope itemtype="http://schema.org/Location">
|
<ul itemprop="location" itemscope itemtype="http://schema.org/Location">
|
||||||
<span itemprop="name">Stadtbibliothek am Mailänder Platz</span>, Max-Bense-Forum (UG)
|
<li itemprop="name"><% if item[:location][:url] %><a itemprop="url" href="<%= item[:location][:url] %>"><%= item[:location][:name] %></a><% else %><%= item[:location][:name] %><% end %>
|
||||||
|
<% if item[:location][:details] %><li><%= item[:location][:details] %><% end %>
|
||||||
|
<span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||||
|
<% if item[:location][:strasse] %><li itemprop="streetAddress"><%= item[:location][:strasse] %><% end %>
|
||||||
|
<% if item[:location][:ort] %><li><span itemprop="postalCode"><%= item[:location][:plz] %></span> <span itemProp="addressLocality"><%= item[:location][:ort] %></span><% end %>
|
||||||
</span>
|
</span>
|
||||||
|
<% if item[:location][:lon] %>
|
||||||
|
<li>
|
||||||
|
<span itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
|
||||||
|
N<span itemprop="latitude"><%= item[:location][:lat] %></span>
|
||||||
|
E<span itemprop="longitude"><%= item[:location][:lon] %></span>
|
||||||
|
</span>
|
||||||
|
(<a itemprop="map" href="http://www.openstreetmap.org/?mlat=<%= item[:location][:lat] %>&mlon=<%= item[:location][:lon] %>&zoom=18#map=16/<%= item[:location][:lat] %>/<%= item[:location][:lon] %>">Karte</a>)
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<section itemprop="description">
|
<section itemprop="description">
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue