Neues Breadcrump-Layout

* Die Breadcrump-Links sind jetzt überdem Seiten-Titel.
* Breadcrumps sind jetzt auf allen Wiki-Ansichten: edit, show, new, versions, all
* Bei edit und version ist der Breadcrump-Teil zur aktuellen Seite auch eine Link.
* Bei all wird nur der Foodcoop-Wiki-Teil angezeigt.
This commit is contained in:
sandoz 2009-08-16 01:09:11 +02:00
parent b46d7ca19c
commit 57023cd018
9 changed files with 143 additions and 58 deletions

View file

@ -1,12 +1,18 @@
- title "Alle Wikiseiten"
- title "Alle Wikiseiten", false
%p= link_to "Neue Seite anlegen", new_page_path
.wiki_all
#breadcrump
= link_to_wikipage(Page.find_by_permalink("Home"), "Foodcoop-Wiki")
%table
%tr
%th Titel
%th zuletzt aktualisiert
- for page in @pages
%h1 Alle Wikiseite
%p= link_to "Neue Seite anlegen", new_page_path
%table
%tr
%td= link_to page.title, wiki_page_path(page.permalink)
%td= format_date page.updated_at
%th Titel
%th Zuletzt aktualisiert
- for page in @pages
%tr
%td= link_to page.title, wiki_page_path(page.permalink)
%td= format_date page.updated_at