From a33cdba11c16bbd9439387c5376e8e16230b251e Mon Sep 17 00:00:00 2001 From: HelloZeroNet Date: Wed, 6 Apr 2016 13:40:45 +0200 Subject: [PATCH] Add site address with donate button to sidebar --- plugins/Sidebar/SidebarPlugin.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index 334070e9..3649c9f5 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -335,6 +335,15 @@ class UiWebsocketPlugin(object): """.format(**locals())) + site_address = self.site.address + body.append(""" +
  • +
    + {site_address} + Donate +
  • + """.format(**locals())) + def sidebarRenderOwnedCheckbox(self, body, site): if self.site.settings["own"]: checked = "checked='checked'"