Button margin

master
Bob Mottram 2019-08-13 11:48:16 +01:00
parent d453d1af87
commit 9b08d803d7
3 changed files with 15 additions and 4 deletions

View File

@ -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','')

View File

@ -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;

View File

@ -172,7 +172,7 @@ def htmlEditProfile(baseDir: str,path: str,domain: str,port: int) -> str:
skillsStr+='<input type="range" min="1" max="100" class="slider" name="skillValue'+str(skillCtr)+'" value="50"></p>' \
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:
' <textarea id="message" name="moderators" placeholder="List of moderator nicknames..." style="height:200px">'+moderators+'</textarea>' \
'</div>'
editProfileForm=htmlHeader(newPostCSS)
editProfileForm=htmlHeader(editProfileCSS)
editProfileForm+= \
'<form enctype="multipart/form-data" method="POST" action="'+path+'/profiledata">' \
' <div class="vertical-center">' \