From 21257425e0c574b8c144219e6a749f4cd723ba05 Mon Sep 17 00:00:00 2001 From: Stefan Schlott Date: Sat, 24 Aug 2013 16:52:47 +0200 Subject: [PATCH] Comma-separated list of speakers --- .../201302-sammeln-von-grossrechnern/index.md | 4 ++-- content/styles/_customstyles.scss | 13 ++++++++++++ layouts/event_body.html | 20 +++++++++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/content/events/201302-sammeln-von-grossrechnern/index.md b/content/events/201302-sammeln-von-grossrechnern/index.md index 684665b7..04c36f52 100644 --- a/content/events/201302-sammeln-von-grossrechnern/index.md +++ b/content/events/201302-sammeln-von-grossrechnern/index.md @@ -1,12 +1,12 @@ --- kind: event -startdate: 2003-02-14 19:30 +startdate: 2003-02-14T19:30:00 duration: 2h title: "Über die besonderen Anforderungen beim Sammeln von historischen Großrechnern" speakers: - name: Wolfgang Stief - affiliaton: GUUG München + affiliation: GUUG München location: location: bib details: Max-Bense-Forum (UG) diff --git a/content/styles/_customstyles.scss b/content/styles/_customstyles.scss index 706b5972..b103bddd 100644 --- a/content/styles/_customstyles.scss +++ b/content/styles/_customstyles.scss @@ -113,4 +113,17 @@ ul.horizontal { } } +.commaseparated { + display: inline; + list-style: none; + li { + isplay: inline; + } + li:after { + content: ", "; + } + li:last-child:after { + content: ""; + } +} diff --git a/layouts/event_body.html b/layouts/event_body.html index ac496fa4..ef53908d 100644 --- a/layouts/event_body.html +++ b/layouts/event_body.html @@ -5,6 +5,26 @@

<%= item[:title] %>

+

+ Termin: + T19:30"><%= @item[:startdate].strftime("%d.%m.%Y") %>, 19:30 Uhr +

+

+ Referent: +

    + <% @item[:speakers].each do |speaker| %> +
  • + <%= speaker[:name] %><% if speaker[:affiliation]%> (<%= speaker[:affiliation] %>)<% end %> +
  • + <% end %> +
+

+

+ Ort: + + Stadtbibliothek am Mailänder Platz, Max-Bense-Forum (UG) + +

<%= yield %>