View only style

merge-requests/30/head
Bob Mottram 2021-07-28 15:02:07 +01:00
parent 19ffc6d0b4
commit edeb8f9960
1 changed files with 21 additions and 9 deletions

View File

@ -222,15 +222,27 @@ def htmlProfileAfterSearch(cssCache: {},
personUrl + '">\n' + \ personUrl + '">\n' + \
' <button type="submit" class="button" name="submitYes" ' + \ ' <button type="submit" class="button" name="submitYes" ' + \
'accesskey="' + accessKeys['followButton'] + '">' + \ 'accesskey="' + accessKeys['followButton'] + '">' + \
translate['Follow'] + '</button>\n' translate['Follow'] + '</button>\n' + \
' <button type="submit" class="button" name="submitView" ' + \
profileStr += \ 'accesskey="' + accessKeys['viewButton'] + '">' + \
' <button type="submit" class="button" name="submitView" ' + \ translate['View'] + '</button>\n' + \
'accesskey="' + accessKeys['viewButton'] + '">' + \ ' </center>\n' + \
translate['View'] + '</button>\n' + \ ' </form>\n' + \
' </center>\n' + \ '</div>\n'
' </form>\n' + \ else:
'</div>\n' profileStr += \
'<div class="container">\n' + \
' <form method="POST" action="' + \
backUrl + '/followconfirm">\n' + \
' <center>\n' + \
' <input type="hidden" name="actor" value="' + \
personUrl + '">\n' + \
' <button type="submit" class="button" name="submitView" ' + \
'accesskey="' + accessKeys['viewButton'] + '">' + \
translate['View'] + '</button>\n' + \
' </center>\n' + \
' </form>\n' + \
'</div>\n'
i = 0 i = 0
for item in parseUserFeed(session, outboxUrl, asHeader, for item in parseUserFeed(session, outboxUrl, asHeader,