summaryrefslogtreecommitdiff
path: root/source/aktuelles/blog.html.haml
diff options
context:
space:
mode:
authorLars Henrik Mai <lars.mai@kontinui.de>2014-09-21 11:57:48 +0200
committerLars Henrik Mai <lars.mai@kontinui.de>2014-09-21 11:57:48 +0200
commit33fe06d9edd5bc3a637e5b0e5f979dbced8f95d0 (patch)
tree5d8370d7dd2f0ecae9de7b35fb7d952e841b4e0b /source/aktuelles/blog.html.haml
parent35239fc1f4641db1e602383b43cc29b151cde9b9 (diff)
parentf3100ad9d93fd31a043594815e260958f5ceaff0 (diff)
Merge branch 'convert-templates-to-haml' into next-tech-1
Diffstat (limited to 'source/aktuelles/blog.html.haml')
-rw-r--r--source/aktuelles/blog.html.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/aktuelles/blog.html.haml b/source/aktuelles/blog.html.haml
new file mode 100644
index 0000000..fbbffcd
--- /dev/null
+++ b/source/aktuelles/blog.html.haml
@@ -0,0 +1,14 @@
+---
+pageable: true
+per_page: 10
+section: "aktuelles"
+---
+- if paginate && num_pages > 1
+ %ul.pager
+ %li{:class => "previous #{prev_page ? "" : "disabled"}"}= link_to 'Vorherige Seite', prev_page
+ %li{:class => "next #{next_page ? "" : "disabled"}"}= link_to 'Nächste Seite', next_page
+= partial "article", collection: page_articles
+- if paginate && num_pages > 1
+ %ul.pager
+ %li{:class => "previous #{prev_page ? "" : "disabled"}"}= link_to 'Vorherige Seite', prev_page
+ %li{:class => "next #{next_page ? "" : "disabled"}"}= link_to 'Nächste Seite', next_page