SideBar plugin: remove unsafe/unused donation
we can still keep largely undocumented feature of custom (for now BTC) addresses that site owners consciously put there
This commit is contained in:
parent
7b1864c0d9
commit
8abe489a1a
1 changed files with 2 additions and 12 deletions
|
@ -425,7 +425,6 @@ class UiWebsocketPlugin(object):
|
||||||
</li>
|
</li>
|
||||||
"""))
|
"""))
|
||||||
|
|
||||||
donate_key = site.content_manager.contents.get("content.json", {}).get("donate", True)
|
|
||||||
site_address = self.site.address
|
site_address = self.site.address
|
||||||
body.append(_("""
|
body.append(_("""
|
||||||
<li>
|
<li>
|
||||||
|
@ -433,9 +432,8 @@ class UiWebsocketPlugin(object):
|
||||||
<div class='flex'>
|
<div class='flex'>
|
||||||
<span class='input text disabled'>{site_address}</span>
|
<span class='input text disabled'>{site_address}</span>
|
||||||
"""))
|
"""))
|
||||||
if donate_key == False or donate_key == "":
|
donate_key = site.content_manager.contents.get("content.json", {}).get("donate", None)
|
||||||
pass
|
if type(donate_key) is str and len(donate_key) > 0:
|
||||||
elif (type(donate_key) == str or type(donate_key) == str) and len(donate_key) > 0:
|
|
||||||
body.append(_("""
|
body.append(_("""
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
@ -444,14 +442,6 @@ class UiWebsocketPlugin(object):
|
||||||
<div class='flex'>
|
<div class='flex'>
|
||||||
{donate_key}
|
{donate_key}
|
||||||
"""))
|
"""))
|
||||||
else:
|
|
||||||
body.append(_("""
|
|
||||||
<a href='bitcoin:{site_address}' class='button' id='button-donate'>{_[Donate]}</a>
|
|
||||||
"""))
|
|
||||||
body.append(_("""
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
"""))
|
|
||||||
|
|
||||||
def sidebarRenderOwnedCheckbox(self, body, site):
|
def sidebarRenderOwnedCheckbox(self, body, site):
|
||||||
if self.site.settings["own"]:
|
if self.site.settings["own"]:
|
||||||
|
|
Loading…
Reference in a new issue