From ed346619d57b76f28f300ca2ee246ed947e37b24 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Tue, 6 May 2014 21:36:19 +0200 Subject: working on the blog section --- source/aktuelles/blog.html.erb | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'source/aktuelles/blog.html.erb') diff --git a/source/aktuelles/blog.html.erb b/source/aktuelles/blog.html.erb index 3045c41..18666b9 100644 --- a/source/aktuelles/blog.html.erb +++ b/source/aktuelles/blog.html.erb @@ -4,17 +4,21 @@ per_page: 10 section: "aktuelles" --- <% if paginate && num_pages > 1 %> -

Seite <%= page_number %> von <%= num_pages %>

- <% if prev_page %> -

<%= link_to 'Vorherige Seite', prev_page %>

- <% end %> + + <% end %> <%= partial "article", collection: page_articles %> -<% if paginate %> - <% if next_page %> -

<%= link_to 'Nächste Seite', next_page %>

- <% end %> +<% if paginate && num_pages > 1 %> + + + <% end %> -- cgit v1.2.1