Add browse files link to sidebar
This commit is contained in:
parent
19bc0358b5
commit
52ed8c18ca
2 changed files with 7 additions and 3 deletions
|
@ -169,12 +169,15 @@ class UiWebsocketPlugin(object):
|
|||
"""))
|
||||
|
||||
def sidebarRenderFileStats(self, body, site):
|
||||
site_address = site.content_manager.contents.get("content.json", {}).get("domain", site.address)
|
||||
body.append(_("""
|
||||
<li>
|
||||
<label>
|
||||
{_[Files]}
|
||||
<small class="label-right"><a href='#Site+directory' id='link-directory' class='link-right'>{_[Open site directory]}</a>
|
||||
<a href='/ZeroNet-Internal/Zip?address={site.address}' id='link-zip' class='link-right' download='site.zip'>{_[Save as .zip]}</a></small>
|
||||
<a href='/list/{site_address}' class='link-right link-outline'>{_[Browse files]}</a>
|
||||
<small class="label-right">
|
||||
<a href='/ZeroNet-Internal/Zip?address={site.address}' id='link-zip' class='link-right' download='site.zip'>{_[Save as .zip]}</a>
|
||||
</small>
|
||||
</label>
|
||||
<ul class='graph graph-stacked'>
|
||||
"""))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue