Use deface in wiki plugin
This commit is contained in:
parent
8e593f8629
commit
da1ebe915c
6 changed files with 7 additions and 5 deletions
|
@ -42,6 +42,7 @@ PATH
|
|||
foodsoft_wiki (0.0.1)
|
||||
acts_as_versioned
|
||||
content_for_in_controllers
|
||||
deface (~> 1.0)
|
||||
diffy
|
||||
rails
|
||||
wikicloth
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
- if defined? FoodsoftWiki # avoid requiring deface here (the single exception)
|
||||
= config_input form, :use_wiki, as: :boolean
|
||||
= config_input form, :use_nick, as: :boolean
|
||||
= config_input form, :tolerance_is_costly, as: :boolean
|
||||
= config_input form, :disable_invite, as: :boolean
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
.alert.alert-error
|
||||
!= t '.nojs', link: link_to(t('.noscript'), "http://noscript.net/")
|
||||
|
||||
- if defined?(FoodsoftWiki) && (page = Page.public_front_page)
|
||||
= wikified_body page.body, page.title
|
||||
|
||||
= form_tag sessions_path, class: 'form-horizontal' do
|
||||
.control-group
|
||||
%label(for='nick' class='control-label')
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
/ insert_before ':root:first-child'
|
||||
= config_input form, :use_wiki, as: :boolean
|
|
@ -0,0 +1,3 @@
|
|||
/ insert_after 'noscript'
|
||||
- if FoodsoftWiki.enabled? && (page = Page.public_front_page)
|
||||
= wikified_body page.body, page.title
|
|
@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|||
s.add_dependency "rails"
|
||||
s.add_dependency 'wikicloth'
|
||||
s.add_dependency 'acts_as_versioned' # need git version, make sure that is included in foodsoft's Gemfile
|
||||
s.add_dependency "deface", "~> 1.0"
|
||||
s.add_dependency 'diffy'
|
||||
s.add_dependency 'content_for_in_controllers'
|
||||
s.add_development_dependency "sqlite3"
|
||||
|
|
Loading…
Reference in a new issue