From 097912bc53a3e903b06eae804f3121e6147a947e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 27 Nov 2019 12:04:06 +0000 Subject: [PATCH] Replacing placeholders for better visibility in lynx --- webinterface.py | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/webinterface.py b/webinterface.py index 589c6f05..cf42f752 100644 --- a/webinterface.py +++ b/webinterface.py @@ -677,13 +677,13 @@ def htmlEditProfile(translate: {},baseDir: str,path: str,domain: str,port: int) editProfileForm+=' '+translate['Only people I follow can send me DMs']+'
' editProfileForm+='
'+translate['Filtered words']+'' editProfileForm+='
'+translate['One per line'] - editProfileForm+=' ' + editProfileForm+=' ' editProfileForm+='
'+translate['Blocked accounts']+'' editProfileForm+='
'+translate['Blocked accounts, one per line, in the form nickname@domain or *@blockeddomain'] - editProfileForm+=' ' + editProfileForm+=' ' editProfileForm+='
'+translate['Federation list']+'' editProfileForm+='
'+translate['Federate only with a defined set of instances. One domain name per line.'] - editProfileForm+=' ' + editProfileForm+=' ' editProfileForm+=' ' editProfileForm+='
' editProfileForm+=' '+translate['Skills']+'
' @@ -992,11 +992,15 @@ def htmlNewPost(translate: {},baseDir: str, \ placeholderMessage=translate['Description of the item being shared']+'...' endpoint='newshare' extraFields='
' - extraFields+=' ' - extraFields+=' ' - extraFields+=' ' + extraFields+=' ' + extraFields+=' ' + extraFields+=' ' + extraFields+=' ' + extraFields+=' ' + extraFields+=' ' extraFields+='
' - extraFields+='' + extraFields+='' + extraFields+='' dateAndLocation='' if endpoint!='newshare' and endpoint!='newreport' and endpoint!='newquestion': @@ -1006,7 +1010,8 @@ def htmlNewPost(translate: {},baseDir: str, \ dateAndLocation+='' dateAndLocation+='

' - dateAndLocation+='' + dateAndLocation+='' + dateAndLocation+='' dateAndLocation+='
' newPostForm=htmlHeader(cssFilename,newPostCSS) @@ -1085,12 +1090,14 @@ def htmlNewPost(translate: {},baseDir: str, \ newPostForm+=' ' newPostForm+=' ' newPostForm+=replyStr - newPostForm+=' ' + newPostForm+=' '+placeholderSubject+'
' + newPostForm+=' ' newPostForm+='' + newPostForm+=' '+placeholderMessage+'
' if endpoint!='newquestion': - newPostForm+=' ' + newPostForm+=' ' else: - newPostForm+=' ' + newPostForm+=' ' newPostForm+=extraFields+dateAndLocation newPostForm+='
' newPostForm+=' ' @@ -1842,7 +1849,7 @@ def insertQuestion(baseDir: str,translate: {}, \ continue votes=int(questionOption['replies']['totalItems']) votesPercent=str(int(votes*100/maxVotes)) - content+='

' + content+='

' content+='

' questionCtr+=1 content+='
' @@ -2639,7 +2646,7 @@ def htmlTimeline(recentPostsCache: {},maxRecentPosts: int, tlStr+='
' tlStr+='
\n' tlStr+=' '+translate['Nickname or URL. Block using *@domain or nickname@domain']+'
\n' - tlStr+='
\n' + tlStr+='
\n' tlStr+=' ' tlStr+=' ' tlStr+=' '