Rev903, FeedQuery command only available for ADMIN sites, Show bad files in sidebar, Log unknown messages, Add and check inner_path and site address on sign/verify, Better peer cleanup limit, Log site load times, Testcase for address and inner_path verification, Re-sign testsite with new fields, Fix unnecessary loading screen display when browsing sub-folder with index.html, Fix safari notification width
This commit is contained in:
parent
4885d2be79
commit
1dbc33445f
20 changed files with 218 additions and 123 deletions
|
@ -12,6 +12,9 @@ class UiWebsocketPlugin(object):
|
|||
self.response(to, feeds)
|
||||
|
||||
def actionFeedQuery(self, to):
|
||||
if "ADMIN" not in self.site.settings["permissions"]:
|
||||
return self.response(to, "FeedQuery not allowed")
|
||||
|
||||
from Site import SiteManager
|
||||
rows = []
|
||||
for address, site_data in self.user.sites.iteritems():
|
||||
|
|
|
@ -254,6 +254,21 @@ class UiWebsocketPlugin(object):
|
|||
</li>
|
||||
""".format(**locals()))
|
||||
|
||||
def sidebarRenderBadFiles(self, body, site):
|
||||
body.append("""
|
||||
<li>
|
||||
<label>Missing files:</label>
|
||||
<ul class='filelist'>
|
||||
""")
|
||||
|
||||
for bad_file in site.bad_files.keys():
|
||||
body.append("<li class='color-red'>%s</li>" % bad_file)
|
||||
|
||||
body.append("""
|
||||
</ul>
|
||||
</li>
|
||||
""")
|
||||
|
||||
def sidebarRenderDbOptions(self, body, site):
|
||||
if not site.storage.db:
|
||||
return False
|
||||
|
@ -352,6 +367,8 @@ class UiWebsocketPlugin(object):
|
|||
has_optional = self.sidebarRenderOptionalFileStats(body, site)
|
||||
if has_optional:
|
||||
self.sidebarRenderOptionalFileSettings(body, site)
|
||||
if site.bad_files:
|
||||
self.sidebarRenderBadFiles(body, site)
|
||||
self.sidebarRenderDbOptions(body, site)
|
||||
self.sidebarRenderIdentity(body, site)
|
||||
|
||||
|
|
|
@ -65,6 +65,9 @@
|
|||
.graph-legend b { text-align: right; display: inline-block; width: 50px; float: right; font-weight: normal; }
|
||||
.graph-legend li:before { content: '\2022'; font-size: 23px; line-height: 0px; vertical-align: -3px; margin-right: 5px; }
|
||||
|
||||
.filelist { font-size: 12px; font-family: monospace; margin: 0px; padding: 0px; list-style-type: none; line-height: 1.5em; }
|
||||
.filelist li:before { content: '\2022'; font-size: 11px; line-height: 0px; vertical-align: 0px; margin-right: 5px; color: #FFBE00; }
|
||||
|
||||
/* COLORS */
|
||||
|
||||
.back-green { background-color: #2ECC71 }
|
||||
|
|
|
@ -119,6 +119,9 @@
|
|||
.graph-legend b { text-align: right; display: inline-block; width: 50px; float: right; font-weight: normal; }
|
||||
.graph-legend li:before { content: '\2022'; font-size: 23px; line-height: 0px; vertical-align: -3px; margin-right: 5px; }
|
||||
|
||||
.filelist { font-size: 12px; font-family: monospace; margin: 0px; padding: 0px; list-style-type: none; line-height: 1.5em; }
|
||||
.filelist li:before { content: '\2022'; font-size: 11px; line-height: 0px; vertical-align: 0px; margin-right: 5px; color: #FFBE00; }
|
||||
|
||||
/* COLORS */
|
||||
|
||||
.back-green { background-color: #2ECC71 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue