diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py
index ecd688dc..56289453 100644
--- a/plugins/Sidebar/SidebarPlugin.py
+++ b/plugins/Sidebar/SidebarPlugin.py
@@ -408,6 +408,10 @@ class UiWebsocketPlugin(object):
{_[Save site settings]}
+
+
+ {_[Open site directory]}
+
"""))
def sidebarRenderContents(self, body, site):
diff --git a/plugins/Sidebar/media/Sidebar.coffee b/plugins/Sidebar/media/Sidebar.coffee
index f78624bd..32b88eb1 100644
--- a/plugins/Sidebar/media/Sidebar.coffee
+++ b/plugins/Sidebar/media/Sidebar.coffee
@@ -348,6 +348,10 @@ class Sidebar extends Class
@updateHtmlTag()
return false
+ # Open site directory
+ @tag.find("#button-directory").off("click touchend").on "click touchend", =>
+ @wrapper.ws.cmd "serverShowdirectory", ["site", @wrapper.site_info.address]
+
# Sign and publish content.json
$(document).on "click touchend", =>
@tag.find("#button-sign-publish-menu").removeClass("visible")
diff --git a/plugins/Sidebar/media/all.js b/plugins/Sidebar/media/all.js
index 02e4f5fb..5b084cac 100644
--- a/plugins/Sidebar/media/all.js
+++ b/plugins/Sidebar/media/all.js
@@ -685,6 +685,11 @@ window.initScrollable = function () {
return false;
};
})(this));
+ this.tag.find("#button-directory").off("click touchend").on("click touchend", (function(_this) {
+ return function() {
+ return _this.wrapper.ws.cmd("serverShowdirectory", ["site", _this.wrapper.site_info.address]);
+ };
+ })(this));
$(document).on("click touchend", (function(_this) {
return function() {
_this.tag.find("#button-sign-publish-menu").removeClass("visible");