Info button on person options

merge-requests/30/head
Bob Mottram 2020-12-16 18:04:32 +00:00
parent 0cbbba4c16
commit 416c7d1188
1 changed files with 14 additions and 7 deletions

View File

@ -206,26 +206,33 @@ def htmlPersonOptions(defaultTimeline: str,
optionsStr += \ optionsStr += \
' <a href="' + backPath + '"><button type="button" ' + \ ' <a href="' + backPath + '"><button type="button" ' + \
'class="buttonIcon" name="submitBack">' + translate['Go Back'] + \ 'class="buttonIcon" name="submitBack">' + translate['Go Back'] + \
'</button></a>' '</button></a>\n'
optionsStr += \ optionsStr += \
' <button type="submit" class="button" name="submitView">' + \ ' <button type="submit" class="button" name="submitView">' + \
translate['View'] + '</button>' translate['View'] + '</button>\n'
optionsStr += donateStr optionsStr += donateStr
optionsStr += \ optionsStr += \
' <button type="submit" class="button" name="submit' + \ ' <button type="submit" class="button" name="submit' + \
followStr + '">' + translate[followStr] + '</button>' followStr + '">' + translate[followStr] + '</button>\n'
optionsStr += \ optionsStr += \
' <button type="submit" class="button" name="submit' + \ ' <button type="submit" class="button" name="submit' + \
blockStr + '">' + translate[blockStr] + '</button>' blockStr + '">' + translate[blockStr] + '</button>\n'
optionsStr += \ optionsStr += \
' <button type="submit" class="button" name="submitDM">' + \ ' <button type="submit" class="button" name="submitDM">' + \
translate['DM'] + '</button>' translate['DM'] + '</button>\n'
optionsStr += \ optionsStr += \
' <button type="submit" class="button" name="submit' + \ ' <button type="submit" class="button" name="submit' + \
snoozeButtonStr + '">' + translate[snoozeButtonStr] + '</button>' snoozeButtonStr + '">' + translate[snoozeButtonStr] + '</button>\n'
optionsStr += \ optionsStr += \
' <button type="submit" class="button" name="submitReport">' + \ ' <button type="submit" class="button" name="submitReport">' + \
translate['Report'] + '</button>' translate['Report'] + '</button>\n'
if isModerator(baseDir, nickname):
optionsStr += ' <input type="hidden" ' + \
'name="moderationAction" value="' + handleShown + '"><br>\n'
optionsStr += \
' <button type="submit" class="button" name="submitInfo">' + \
translate['Info'] + '</button>\n'
personNotes = '' personNotes = ''
personNotesFilename = \ personNotesFilename = \