From 90c0d3659850d71119a2825cfedc85f18e9c768f Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Tue, 21 Oct 2014 23:37:40 +0200 Subject: layout fixes blog and calendar --- source/aktuelles/blog.html.haml | 4 ++++ source/aktuelles/kalender.html.haml | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'source/aktuelles') diff --git a/source/aktuelles/blog.html.haml b/source/aktuelles/blog.html.haml index 875fb54..68f4c20 100644 --- a/source/aktuelles/blog.html.haml +++ b/source/aktuelles/blog.html.haml @@ -3,12 +3,16 @@ pageable: true per_page: 10 section: "aktuelles" --- +%h2 + News .pagination-centered - if paginate && num_pages > 1 %ul.pagination %li{:class => "previous left #{prev_page ? "" : "disabled"}"}= link_to 'Vorherige Seite', prev_page %li{:class => "next right #{next_page ? "" : "disabled"}"}= link_to 'Nächste Seite', next_page + = partial "article", collection: page_articles + .pagination-centered - if paginate && num_pages > 1 %ul.pagination diff --git a/source/aktuelles/kalender.html.haml b/source/aktuelles/kalender.html.haml index 437bc52..f9de063 100644 --- a/source/aktuelles/kalender.html.haml +++ b/source/aktuelles/kalender.html.haml @@ -3,15 +3,16 @@ section: "aktuelles" --- %h2 Termine + - data.calendar.map {|data| CalendarHelpers::Event.new(data)}.each do |ev| .row - .large-12.columns + .small-12.columns %h4= ev.date - .row - .large-2.large-offset-1.columns + .row.panel + .small-6.columns %span= ev.start_time \- %span= ev.end_time - .large-9.columns + .small-6.columns %span= ev.summary -- cgit v1.2.1