Fix browse files link for not installed domain plugins
This commit is contained in:
parent
4b8dfc5114
commit
dcbfb8afe0
3 changed files with 7 additions and 4 deletions
|
@ -169,12 +169,11 @@ 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]}
|
||||
<a href='/list/{site_address}' class='link-right link-outline'>{_[Browse files]}</a>
|
||||
<a href='/list/{site.address}' class='link-right link-outline' id="browse-files">{_[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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue