diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php index aaa1f1e3d..b73244a1c 100644 --- a/Zotlabs/Module/Wiki.php +++ b/Zotlabs/Module/Wiki.php @@ -211,6 +211,8 @@ class Wiki extends \Zotlabs\Web\Controller { '$wikiheaderPage' => $wikiheaderPage, '$hideEditor' => $hide_editor, '$showPageControls' => $showPageControls, + '$tools_label' => 'Wiki Tools', + '$showTools' => $showNewWikiButton || $showNewPageButton, '$showNewWikiButton'=> $showNewWikiButton, '$showNewPageButton'=> $showNewPageButton, '$hidePageHistory' => $hidePageHistory, diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl index 8fdf56e77..7e18b0fc4 100644 --- a/view/tpl/wiki.tpl +++ b/view/tpl/wiki.tpl @@ -13,13 +13,42 @@
+
- {{if $showNewWikiButton}} - - {{/if}} - {{if $showNewPageButton}} - - {{/if}} + {{if $showNewWikiButton || $showPageControls}} +
+ + +
+ + {{/if}} +