new hooks for wiki
This commit is contained in:
parent
484711d1ce
commit
880e047fb4
5
app/overrides/wiki/edit.rb
Normal file
5
app/overrides/wiki/edit.rb
Normal file
@ -0,0 +1,5 @@
|
||||
Deface::Override.new virtual_path: 'wiki/edit',
|
||||
name: 'wiki-edit-bottom',
|
||||
insert_before: 'fieldset',
|
||||
original: 'ededb6cfd5adfe8a9723d00ce0ee23575c7cc44c',
|
||||
partial: 'hooks/view_wiki_form_bottom'
|
5
app/overrides/wiki/show.rb
Normal file
5
app/overrides/wiki/show.rb
Normal file
@ -0,0 +1,5 @@
|
||||
Deface::Override.new virtual_path: 'wiki/show',
|
||||
name: 'wiki-show-bottom',
|
||||
insert_before: 'p.wiki-update-info',
|
||||
original: 'd9f52aa98f1cb335314570d3f5403690f1b29145',
|
||||
partial: 'hooks/view_wiki_show_bottom'
|
1
app/views/hooks/_view_wiki_form_bottom.html.slim
Normal file
1
app/views/hooks/_view_wiki_form_bottom.html.slim
Normal file
@ -0,0 +1 @@
|
||||
= call_hook :view_wiki_form_bottom, content: @content, page: @page
|
1
app/views/hooks/_view_wiki_show_bottom.html.slim
Normal file
1
app/views/hooks/_view_wiki_show_bottom.html.slim
Normal file
@ -0,0 +1 @@
|
||||
= call_hook :view_wiki_show_bottom, content: @content, page: @page
|
Loading…
Reference in New Issue
Block a user