From 02cf7274d28d093094067114d208537cf135266b Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sat, 22 Oct 2016 08:52:26 -0400 Subject: Add wiki download button to export the selected wiki repo to a zip file --- view/tpl/wiki.tpl | 4 ++++ view/tpl/wikilist.tpl | 1 + 2 files changed, 5 insertions(+) (limited to 'view') diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl index c05b33a61..8fdf56e77 100644 --- a/view/tpl/wiki.tpl +++ b/view/tpl/wiki.tpl @@ -239,6 +239,10 @@ function wiki_delete_wiki(wikiHtmlName, resource_id) { }, 'json'); } + +function wiki_download_wiki(resource_id) { + window.location = "wiki/{{$channel}}/download/wiki/" + resource_id; +} $('#new-page-submit').click(function (ev) { if (window.wiki_resource_id === '') { diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl index be353ca5e..6b37be4c5 100644 --- a/view/tpl/wikilist.tpl +++ b/view/tpl/wikilist.tpl @@ -8,6 +8,7 @@