diff --git a/layouts/event_body.html b/layouts/event_body.html index c1f5b750..c170ab87 100644 --- a/layouts/event_body.html +++ b/layouts/event_body.html @@ -3,41 +3,7 @@
-
-

<%= 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: -
    -
  • <% if item[:location][:url] %><% else %><%= item[:location][:name] %><% end %> - <% if item[:location][:details] %>
  • <%= item[:location][:details] %><% end %> - - <% if item[:location][:strasse] %>
  • <%= item[:location][:strasse] %><% end %> - <% if item[:location][:ort] %>
  • <%= item[:location][:plz] %> <%= item[:location][:ort] %><% end %> - - <% if item[:location][:lon] %> -
  • - - N<%= item[:location][:lat] %> - E<%= item[:location][:lon] %> - - (Karte) - <% end %> -
-
-
+ <%= render 'event_header', :item => item %>
<%= yield %> diff --git a/layouts/event_header.erb b/layouts/event_header.erb new file mode 100644 index 00000000..141d78e5 --- /dev/null +++ b/layouts/event_header.erb @@ -0,0 +1,36 @@ +
+

+ 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: +
    +
  • <% if item[:location][:url] %><% else %><%= item[:location][:name] %><% end %> + <% if item[:location][:details] %>
  • <%= item[:location][:details] %><% end %> + + <% if item[:location][:strasse] %>
  • <%= item[:location][:strasse] %><% end %> + <% if item[:location][:ort] %>
  • <%= item[:location][:plz] %> <%= item[:location][:ort] %><% end %> + + <% if item[:location][:lon] %> +
  • + + N<%= item[:location][:lat] %> + E<%= item[:location][:lon] %> + + (Karte) + <% end %> +
+
+
+