From 9b08d803d781df3327f2c1f01e57464b6a62549a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 13 Aug 2019 11:48:16 +0100 Subject: [PATCH] Button margin --- daemon.py | 13 ++++++++++++- epicyon-profile.css | 2 +- webinterface.py | 4 ++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index 4bac9240..57e401e7 100644 --- a/daemon.py +++ b/daemon.py @@ -1881,7 +1881,7 @@ class PubServer(BaseHTTPRequestHandler): self.send_response(200) self.end_headers() self.server.POSTbusy=False - return + return # update of profile/avatar from web interface if authorized and self.path.endswith('/profiledata'): @@ -2096,6 +2096,17 @@ class PubServer(BaseHTTPRequestHandler): self.server.POSTbusy=False return + # moderator action buttons + if authorized and '/users/' in self.path and \ + self.path.endswith('/moderatoraction'): + actorStr=self.path.replace('/moderatoraction','') + length = int(self.headers['Content-length']) + moderationParams=self.rfile.read(length).decode('utf-8') + print('moderationParams: '+moderationParams) + self._redirect_headers(actorStr+'/moderation',cookie) + self.server.POSTbusy=False + return + # decision to follow in the web interface is confirmed if authorized and self.path.endswith('/searchhandle'): actorStr=self.path.replace('/searchhandle','') diff --git a/epicyon-profile.css b/epicyon-profile.css index 2e74d76b..a3fbc013 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -485,7 +485,7 @@ input[type=submit] { background-color: #555; color: white; float: right; - margin: 0px 10px; + margin: 10px 10px; padding: 12px 40px; border: none; border-radius: 4px; diff --git a/webinterface.py b/webinterface.py index d0ac8584..9b1bd9ba 100644 --- a/webinterface.py +++ b/webinterface.py @@ -172,7 +172,7 @@ def htmlEditProfile(baseDir: str,path: str,domain: str,port: int) -> str: skillsStr+='

' \ with open(baseDir+'/epicyon-profile.css', 'r') as cssFile: - newPostCSS = cssFile.read() + editProfileCSS = cssFile.read() moderatorsStr='' adminNickname=getConfigParam(baseDir,'admin') @@ -189,7 +189,7 @@ def htmlEditProfile(baseDir: str,path: str,domain: str,port: int) -> str: ' ' \ '' - editProfileForm=htmlHeader(newPostCSS) + editProfileForm=htmlHeader(editProfileCSS) editProfileForm+= \ '
' \ '
' \