main
Bob Mottram 2020-11-21 09:56:45 +00:00
parent 54592b6cb0
commit a8ed522459
5 changed files with 14 additions and 21 deletions

View File

@ -724,12 +724,11 @@ def htmlEditBlog(mediaInstance: bool, translate: {},
iconsPath = getIconsWebPath(baseDir)
editBlogText = '<p class="new-post-text">' + \
translate['Write your post text below.'] + '</p>'
editBlogText = '<h1">' + translate['Write your post text below.'] + '</h1>'
if os.path.isfile(baseDir + '/accounts/newpost.txt'):
with open(baseDir + '/accounts/newpost.txt', 'r') as file:
editBlogText = '<p class="new-post-text">' + file.read() + '</p>'
editBlogText = '<p>' + file.read() + '</p>'
cssFilename = baseDir + '/epicyon-profile.css'
if os.path.isfile(baseDir + '/epicyon.css'):

View File

@ -219,12 +219,6 @@ h1 {
font-family: var(--header-font);
}
.new-post-text {
font-size: var(--font-size2);
font-family: Arial, Helvetica, sans-serif;
padding: 4px 0;
}
.new-post-subtext {
font-size: var(--font-size-header);
font-family: Arial, Helvetica, sans-serif;

View File

@ -605,7 +605,7 @@ def htmlEditNewsPost(cssCache: {}, translate: {}, baseDir: str, path: str,
editNewsPostForm += \
' <div class="vertical-center">\n'
editNewsPostForm += \
' <p class="new-post-text">' + translate['Edit News Post'] + '</p>'
' <h1>' + translate['Edit News Post'] + '</h1>'
editNewsPostForm += \
' <div class="container">\n'
editNewsPostForm += \

View File

@ -183,8 +183,8 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
if not path.endswith('/newshare'):
if not path.endswith('/newreport'):
if not inReplyTo or path.endswith('/newreminder'):
newPostText = '<p class="new-post-text">' + \
translate['Write your post text below.'] + '</p>\n'
newPostText = '<h1>' + \
translate['Write your post text below.'] + '</h1>\n'
else:
newPostText = \
'<p class="new-post-text">' + \
@ -208,8 +208,8 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
showPublicOnDropdown = False
else:
newPostText = \
'<p class="new-post-text">' + \
translate['Write your report below.'] + '</p>\n'
'<h1>' + \
translate['Write your report below.'] + '</h1>\n'
# custom report header with any additional instructions
if os.path.isfile(baseDir + '/accounts/report.txt'):
@ -233,20 +233,20 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
translate['Terms of Service'] + '</a></p>\n'
else:
newPostText = \
'<p class="new-post-text">' + \
'<h1>' + \
translate['Enter the details for your shared item below.'] + \
'</p>\n'
'</h1>\n'
if path.endswith('/newquestion'):
newPostText = \
'<p class="new-post-text">' + \
'<h1>' + \
translate['Enter the choices for your question below.'] + \
'</p>\n'
'</h1>\n'
if os.path.isfile(baseDir + '/accounts/newpost.txt'):
with open(baseDir + '/accounts/newpost.txt', 'r') as file:
newPostText = \
'<p class="new-post-text">' + file.read() + '</p>\n'
'<p>' + file.read() + '</p>\n'
cssFilename = baseDir + '/epicyon-profile.css'
if os.path.isfile(baseDir + '/epicyon.css'):

View File

@ -1171,8 +1171,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
'accept-charset="UTF-8" action="' + path + '/profiledata">\n'
editProfileForm += ' <div class="vertical-center">\n'
editProfileForm += \
' <p class="new-post-text">' + translate['Profile for'] + \
' ' + nickname + '@' + domainFull + '</p>'
' <h1>' + translate['Profile for'] + \
' ' + nickname + '@' + domainFull + '</h1>'
editProfileForm += ' <div class="container">\n'
# editProfileForm += \
# ' <a href="' + pathOriginal + '"><button class="cancelbtn">' + \