Rev3372, Cosmetic changes on open site directory button

This commit is contained in:
shortcutme 2018-03-19 16:05:14 +01:00
parent a454f3de6e
commit c3b146611b
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
6 changed files with 14 additions and 9 deletions

View file

@ -137,7 +137,7 @@ class UiWebsocketPlugin(object):
"""))
def sidebarRenderFileStats(self, body, site):
body.append(_(u"<li><label>{_[Files]}</label><ul class='graph graph-stacked'>"))
body.append(_(u"<li><label>{_[Files]} <small><a href='#Site+directory' id='link-directory' class='link-right'>{_[Open site directory]}</a></small></label><ul class='graph graph-stacked'>"))
extensions = (
("html", "yellow"),
@ -418,10 +418,6 @@ class UiWebsocketPlugin(object):
<li>
<a href='#Save' class='button' id='button-settings'>{_[Save site settings]}</a>
</li>
<li>
<a href='#Directory' class='button' id='button-directory'>{_[Open site directory]}</a>
</li>
"""))
def sidebarRenderContents(self, body, site):

View file

@ -352,9 +352,11 @@ class Sidebar extends Class
@updateHtmlTag()
return false
# Open site directory
@tag.find("#button-directory").off("click touchend").on "click touchend", =>
@tag.find("#link-directory").off("click touchend").on "click touchend", =>
@wrapper.ws.cmd "serverShowdirectory", ["site", @wrapper.site_info.address]
return false
# Sign and publish content.json
$(document).on "click touchend", =>

View file

@ -11,6 +11,9 @@
#inner-iframe { transition: 0.3s ease-in-out; transform-origin: left; outline: 1px solid transparent; }
.body-sidebar iframe { transform: rotateY(5deg); opacity: 0.8; pointer-events: none } /* translateX(-200px) scale(0.95)*/
.sidebar .link-right { color: white; text-decoration: none; border-bottom: 1px solid #666; text-transform: uppercase; float: right; margin-right: 7px; margin-top: 1px; }
.sidebar .link-right:hover { border-color: #CCC; }
.sidebar .link-right:active { background-color: #444 }
/* SIDEBAR */
.sidebar-container { width: 100%; height: 100%; overflow: hidden; position: fixed; }

View file

@ -90,6 +90,9 @@
#inner-iframe { -webkit-transition: 0.3s ease-in-out; -moz-transition: 0.3s ease-in-out; -o-transition: 0.3s ease-in-out; -ms-transition: 0.3s ease-in-out; transition: 0.3s ease-in-out ; transform-origin: left; outline: 1px solid transparent; }
.body-sidebar iframe { -webkit-transform: rotateY(5deg); -moz-transform: rotateY(5deg); -o-transform: rotateY(5deg); -ms-transform: rotateY(5deg); transform: rotateY(5deg) ; opacity: 0.8; pointer-events: none } /* translateX(-200px) scale(0.95)*/
.sidebar .link-right { color: white; text-decoration: none; border-bottom: 1px solid #666; text-transform: uppercase; float: right; margin-right: 7px; margin-top: 1px; }
.sidebar .link-right:hover { border-color: #CCC; }
.sidebar .link-right:active { background-color: #444 }
/* SIDEBAR */
.sidebar-container { width: 100%; height: 100%; overflow: hidden; position: fixed; }

View file

@ -691,9 +691,10 @@ window.initScrollable = function () {
return false;
};
})(this));
this.tag.find("#button-directory").off("click touchend").on("click touchend", (function(_this) {
this.tag.find("#link-directory").off("click touchend").on("click touchend", (function(_this) {
return function() {
return _this.wrapper.ws.cmd("serverShowdirectory", ["site", _this.wrapper.site_info.address]);
_this.wrapper.ws.cmd("serverShowdirectory", ["site", _this.wrapper.site_info.address]);
return false;
};
})(this));
$(document).on("click touchend", (function(_this) {

View file

@ -10,7 +10,7 @@ class Config(object):
def __init__(self, argv):
self.version = "0.6.2"
self.rev = 3371
self.rev = 3372
self.argv = argv
self.action = None
self.config_file = "zeronet.conf"