summaryrefslogtreecommitdiff
path: root/source/news.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'source/news.html.erb')
-rw-r--r--source/news.html.erb13
1 files changed, 4 insertions, 9 deletions
diff --git a/source/news.html.erb b/source/news.html.erb
index 0fae27e..d238f2a 100644
--- a/source/news.html.erb
+++ b/source/news.html.erb
@@ -3,22 +3,17 @@ pageable: true
per_page: 10
---
<% if paginate && num_pages > 1 %>
- <p>Page <%= page_number %> of <%= num_pages %></p>
+ <p>Seite <%= page_number %> von <%= num_pages %></p>
<% if prev_page %>
- <p><%= link_to 'Previous page', prev_page %></p>
+ <p><%= link_to 'Vorherige Seite', prev_page %></p>
<% end %>
<% end %>
-<% page_articles.each_with_index do |article, i| %>
- <h2><%= link_to article.title, article %> <span><%= article.date.strftime('%b %e') %></span></h2>
- <!-- use article.summary(250) if you have Nokogiri available to show just
- the first 250 characters -->
- <%= article.body %>
-<% end %>
+<%= partial "article", collection: page_articles %>
<% if paginate %>
<% if next_page %>
- <p><%= link_to 'Next page', next_page %></p>
+ <p><%= link_to 'Nächste Seite', next_page %></p>
<% end %>
<% end %>