Change text location

main
Bob Mottram 2020-12-07 11:03:14 +00:00
parent 8595d1b633
commit 1c6c89317a
1 changed files with 6 additions and 8 deletions

View File

@ -187,7 +187,7 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
if not path.endswith('/newreport'): if not path.endswith('/newreport'):
if not inReplyTo or path.endswith('/newreminder'): if not inReplyTo or path.endswith('/newreminder'):
newPostText = '<h1>' + \ newPostText = '<h1>' + \
translate['Ask about a shared item.'] + '</h1>\n' translate['Write your post text below.'] + '</h1>\n'
else: else:
newPostText = \ newPostText = \
'<p class="new-post-text">' + \ '<p class="new-post-text">' + \
@ -246,11 +246,6 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
translate['Enter the choices for your question below.'] + \ translate['Enter the choices for your question below.'] + \
'</h1>\n' '</h1>\n'
if shareDescription:
newPostText = '<h1>' + \
translate['Write your post text below.'] + '</h1>\n'
if os.path.isfile(baseDir + '/accounts/newpost.txt'): if os.path.isfile(baseDir + '/accounts/newpost.txt'):
with open(baseDir + '/accounts/newpost.txt', 'r') as file: with open(baseDir + '/accounts/newpost.txt', 'r') as file:
newPostText = \ newPostText = \
@ -298,8 +293,11 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
scopeIcon = 'scope_public.png' scopeIcon = 'scope_public.png'
scopeDescription = translate['Public'] scopeDescription = translate['Public']
placeholderSubject = \ if shareDescription:
translate['Subject or Content Warning (optional)'] + '...' placeholderSubject = translate['Ask about a shared item.'] + '..'
else:
placeholderSubject = \
translate['Subject or Content Warning (optional)'] + '...'
placeholderMentions = '' placeholderMentions = ''
if inReplyTo: if inReplyTo:
# mentionsAndContent = getMentionsString(content) # mentionsAndContent = getMentionsString(content)