Add a wiki page for the Dashboard
This commit is contained in:
parent
cef951e421
commit
0de7fc0da5
2 changed files with 7 additions and 0 deletions
|
@ -28,6 +28,10 @@ class Page < ActiveRecord::Base
|
||||||
permalink == "Home"
|
permalink == "Home"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.dashboard
|
||||||
|
where(permalink: "Dashboard").first
|
||||||
|
end
|
||||||
|
|
||||||
def self.public_front_page
|
def self.public_front_page
|
||||||
where(permalink: "Public_frontpage").first
|
where(permalink: "Public_frontpage").first
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
/ insert_after 'erb[silent]:contains("<dashboard_top_mark>")'
|
||||||
|
- if FoodsoftWiki.enabled? && (page = Page.dashboard)
|
||||||
|
= wikified_body page.body, page.title
|
Loading…
Reference in a new issue