forked from indymedia/epicyon
Headers
parent
54592b6cb0
commit
a8ed522459
5
blog.py
5
blog.py
|
@ -724,12 +724,11 @@ def htmlEditBlog(mediaInstance: bool, translate: {},
|
||||||
|
|
||||||
iconsPath = getIconsWebPath(baseDir)
|
iconsPath = getIconsWebPath(baseDir)
|
||||||
|
|
||||||
editBlogText = '<p class="new-post-text">' + \
|
editBlogText = '<h1">' + translate['Write your post text below.'] + '</h1>'
|
||||||
translate['Write your post text below.'] + '</p>'
|
|
||||||
|
|
||||||
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:
|
||||||
editBlogText = '<p class="new-post-text">' + file.read() + '</p>'
|
editBlogText = '<p>' + file.read() + '</p>'
|
||||||
|
|
||||||
cssFilename = baseDir + '/epicyon-profile.css'
|
cssFilename = baseDir + '/epicyon-profile.css'
|
||||||
if os.path.isfile(baseDir + '/epicyon.css'):
|
if os.path.isfile(baseDir + '/epicyon.css'):
|
||||||
|
|
|
@ -219,12 +219,6 @@ h1 {
|
||||||
font-family: var(--header-font);
|
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 {
|
.new-post-subtext {
|
||||||
font-size: var(--font-size-header);
|
font-size: var(--font-size-header);
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
|
|
@ -605,7 +605,7 @@ def htmlEditNewsPost(cssCache: {}, translate: {}, baseDir: str, path: str,
|
||||||
editNewsPostForm += \
|
editNewsPostForm += \
|
||||||
' <div class="vertical-center">\n'
|
' <div class="vertical-center">\n'
|
||||||
editNewsPostForm += \
|
editNewsPostForm += \
|
||||||
' <p class="new-post-text">' + translate['Edit News Post'] + '</p>'
|
' <h1>' + translate['Edit News Post'] + '</h1>'
|
||||||
editNewsPostForm += \
|
editNewsPostForm += \
|
||||||
' <div class="container">\n'
|
' <div class="container">\n'
|
||||||
editNewsPostForm += \
|
editNewsPostForm += \
|
||||||
|
|
|
@ -183,8 +183,8 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
||||||
if not path.endswith('/newshare'):
|
if not path.endswith('/newshare'):
|
||||||
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 = '<p class="new-post-text">' + \
|
newPostText = '<h1>' + \
|
||||||
translate['Write your post text below.'] + '</p>\n'
|
translate['Write your post text below.'] + '</h1>\n'
|
||||||
else:
|
else:
|
||||||
newPostText = \
|
newPostText = \
|
||||||
'<p class="new-post-text">' + \
|
'<p class="new-post-text">' + \
|
||||||
|
@ -208,8 +208,8 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
||||||
showPublicOnDropdown = False
|
showPublicOnDropdown = False
|
||||||
else:
|
else:
|
||||||
newPostText = \
|
newPostText = \
|
||||||
'<p class="new-post-text">' + \
|
'<h1>' + \
|
||||||
translate['Write your report below.'] + '</p>\n'
|
translate['Write your report below.'] + '</h1>\n'
|
||||||
|
|
||||||
# custom report header with any additional instructions
|
# custom report header with any additional instructions
|
||||||
if os.path.isfile(baseDir + '/accounts/report.txt'):
|
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'
|
translate['Terms of Service'] + '</a></p>\n'
|
||||||
else:
|
else:
|
||||||
newPostText = \
|
newPostText = \
|
||||||
'<p class="new-post-text">' + \
|
'<h1>' + \
|
||||||
translate['Enter the details for your shared item below.'] + \
|
translate['Enter the details for your shared item below.'] + \
|
||||||
'</p>\n'
|
'</h1>\n'
|
||||||
|
|
||||||
if path.endswith('/newquestion'):
|
if path.endswith('/newquestion'):
|
||||||
newPostText = \
|
newPostText = \
|
||||||
'<p class="new-post-text">' + \
|
'<h1>' + \
|
||||||
translate['Enter the choices for your question below.'] + \
|
translate['Enter the choices for your question below.'] + \
|
||||||
'</p>\n'
|
'</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 = \
|
||||||
'<p class="new-post-text">' + file.read() + '</p>\n'
|
'<p>' + file.read() + '</p>\n'
|
||||||
|
|
||||||
cssFilename = baseDir + '/epicyon-profile.css'
|
cssFilename = baseDir + '/epicyon-profile.css'
|
||||||
if os.path.isfile(baseDir + '/epicyon.css'):
|
if os.path.isfile(baseDir + '/epicyon.css'):
|
||||||
|
|
|
@ -1171,8 +1171,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
||||||
'accept-charset="UTF-8" action="' + path + '/profiledata">\n'
|
'accept-charset="UTF-8" action="' + path + '/profiledata">\n'
|
||||||
editProfileForm += ' <div class="vertical-center">\n'
|
editProfileForm += ' <div class="vertical-center">\n'
|
||||||
editProfileForm += \
|
editProfileForm += \
|
||||||
' <p class="new-post-text">' + translate['Profile for'] + \
|
' <h1>' + translate['Profile for'] + \
|
||||||
' ' + nickname + '@' + domainFull + '</p>'
|
' ' + nickname + '@' + domainFull + '</h1>'
|
||||||
editProfileForm += ' <div class="container">\n'
|
editProfileForm += ' <div class="container">\n'
|
||||||
# editProfileForm += \
|
# editProfileForm += \
|
||||||
# ' <a href="' + pathOriginal + '"><button class="cancelbtn">' + \
|
# ' <a href="' + pathOriginal + '"><button class="cancelbtn">' + \
|
||||||
|
|
Loading…
Reference in New Issue