mirror of https://gitlab.com/bashrc2/epicyon
Move post pinning to the replies section
parent
fb8cb2bff6
commit
ffbfbc86ca
|
@ -898,6 +898,13 @@ def html_new_post(edit_post_params: {},
|
||||||
'name="commentsEnabled" ' + \
|
'name="commentsEnabled" ' + \
|
||||||
'checked><label class="labels"> ' + \
|
'checked><label class="labels"> ' + \
|
||||||
translate['Allow replies.'] + '</label></p>\n'
|
translate['Allow replies.'] + '</label></p>\n'
|
||||||
|
if endpoint == 'newpost':
|
||||||
|
replies_section += \
|
||||||
|
'<p><input type="checkbox" ' + \
|
||||||
|
'class="profilecheckbox" ' + \
|
||||||
|
'name="pinToProfile"><label class="labels"> ' + \
|
||||||
|
translate['Pin this post to your profile.'] + \
|
||||||
|
'</label></p>\n'
|
||||||
else:
|
else:
|
||||||
replies_section += \
|
replies_section += \
|
||||||
'<input type="hidden" name="commentsEnabled" ' + \
|
'<input type="hidden" name="commentsEnabled" ' + \
|
||||||
|
@ -933,12 +940,6 @@ def html_new_post(edit_post_params: {},
|
||||||
|
|
||||||
date_and_location = \
|
date_and_location = \
|
||||||
begin_edit_section('🗓️ ' + translate['Set a place and time'])
|
begin_edit_section('🗓️ ' + translate['Set a place and time'])
|
||||||
if endpoint == 'newpost':
|
|
||||||
date_and_location += \
|
|
||||||
'<p><input type="checkbox" class="profilecheckbox" ' + \
|
|
||||||
'name="pinToProfile"><label class="labels"> ' + \
|
|
||||||
translate['Pin this post to your profile.'] + \
|
|
||||||
'</label></p>\n'
|
|
||||||
|
|
||||||
if not in_reply_to:
|
if not in_reply_to:
|
||||||
date_and_location += \
|
date_and_location += \
|
||||||
|
|
Loading…
Reference in New Issue