mirror of https://gitlab.com/bashrc2/epicyon
Change behavior of back button if not logged in
parent
9145ac0801
commit
4e6d9d2d45
|
@ -321,10 +321,16 @@ def htmlPersonOptions(defaultTimeline: str,
|
||||||
backPath = '/users/' + nickname + '/' + defaultTimeline
|
backPath = '/users/' + nickname + '/' + defaultTimeline
|
||||||
if 'moderation' in backToPath:
|
if 'moderation' in backToPath:
|
||||||
backPath = '/users/' + nickname + '/moderation'
|
backPath = '/users/' + nickname + '/moderation'
|
||||||
optionsStr += \
|
if authorized:
|
||||||
' <a href="' + backPath + '"><button type="button" ' + \
|
optionsStr += \
|
||||||
'class="buttonIcon" name="submitBack">' + translate['Go Back'] + \
|
' <a href="' + backPath + '"><button type="button" ' + \
|
||||||
'</button></a>\n'
|
'class="buttonIcon" name="submitBack">' + translate['Go Back'] + \
|
||||||
|
'</button></a>\n'
|
||||||
|
else:
|
||||||
|
optionsStr += \
|
||||||
|
' <a href="' + originPathStr + '"><button type="button" ' + \
|
||||||
|
'class="buttonIcon" name="submitBack">' + translate['Go Back'] + \
|
||||||
|
'</button></a>\n'
|
||||||
if authorized:
|
if authorized:
|
||||||
optionsStr += \
|
optionsStr += \
|
||||||
' <button type="submit" class="button" name="submitView">' + \
|
' <button type="submit" class="button" name="submitView">' + \
|
||||||
|
|
Loading…
Reference in New Issue