Few improvements to wiki module.
This commit is contained in:
parent
dafbb077b6
commit
7e4409bc11
6 changed files with 17 additions and 7 deletions
|
@ -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" }
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -434,3 +434,6 @@ ul.autocomplete .informal {
|
|||
position: relative;
|
||||
top: -1em;
|
||||
left: 5%; }
|
||||
|
||||
a.new_wiki_link {
|
||||
color: grey; }
|
||||
|
|
|
@ -435,6 +435,9 @@ ul.autocomplete .informal {
|
|||
top: -1em;
|
||||
left: 5%; }
|
||||
|
||||
a.new_wiki_link {
|
||||
color: grey; }
|
||||
|
||||
#logininfo, #header, #footer {
|
||||
display: none; }
|
||||
|
||||
|
|
|
@ -481,3 +481,7 @@ ul.autocomplete
|
|||
position: relative
|
||||
top: -1em
|
||||
left: 5%
|
||||
|
||||
// *** wiki
|
||||
a.new_wiki_link
|
||||
color: grey
|
Loading…
Reference in a new issue