Few improvements to wiki module.

This commit is contained in:
Benjamin Meichsner 2009-05-07 18:15:14 +02:00
parent dafbb077b6
commit 7e4409bc11
6 changed files with 17 additions and 7 deletions

View File

@ -41,8 +41,8 @@ class PagesController < ApplicationController
respond_to do |format|
if @page.save
flash[:notice] = 'Page was successfully created.'
format.html { redirect_to(@page) }
flash[:notice] = 'Seite wurde angelegt.'
format.html { redirect_to(wiki_page_path(@page.permalink)) }
format.xml { render :xml => @page, :status => :created, :location => @page }
else
format.html { render :action => "new" }
@ -58,8 +58,8 @@ class PagesController < ApplicationController
respond_to do |format|
if @page.update_attributes(params[:page])
flash[:notice] = 'Page was successfully updated.'
format.html { redirect_to(@page) }
flash[:notice] = 'Seite wurde aktualisiert.'
format.html { redirect_to(wiki_page_path(@page.permalink)) }
format.xml { head :ok }
else
format.html { render :action => "edit" }

View File

@ -18,7 +18,7 @@
},
{ :name => "Wiki", :url => "/pages", :active => ["pages", "wiki"],
:subnav => [
{ :name => "Alle Seiten", :url => "pages/all" }
{ :name => "Alle Seiten", :url => "/pages/all" }
]
},
{ :name => "Bestellungen", :url => u.ordergroup ? "/ordering/" : "/orders",

View File

@ -8,5 +8,5 @@
%th zuletzt aktualisiert
- for page in @pages
%tr
%td= link_to page.title, page
%td= link_to page.title, wiki_page_path(page.permalink)
%td= format_date page.updated_at

View File

@ -434,3 +434,6 @@ ul.autocomplete .informal {
position: relative;
top: -1em;
left: 5%; }
a.new_wiki_link {
color: grey; }

View File

@ -435,6 +435,9 @@ ul.autocomplete .informal {
top: -1em;
left: 5%; }
a.new_wiki_link {
color: grey; }
#logininfo, #header, #footer {
display: none; }

View File

@ -480,4 +480,8 @@ ul.autocomplete
#element_navigation
position: relative
top: -1em
left: 5%
left: 5%
// *** wiki
a.new_wiki_link
color: grey