mirror of https://gitlab.com/bashrc2/epicyon
Terminology for joining group
parent
21bbe5f5a9
commit
4762da91d5
|
@ -118,6 +118,11 @@ def htmlProfileAfterSearch(cssCache: {},
|
||||||
if os.path.isfile(baseDir + '/epicyon.css'):
|
if os.path.isfile(baseDir + '/epicyon.css'):
|
||||||
cssFilename = baseDir + '/epicyon.css'
|
cssFilename = baseDir + '/epicyon.css'
|
||||||
|
|
||||||
|
isGroup = False
|
||||||
|
if profileJson.get('type'):
|
||||||
|
if profileJson['type'] == 'Group':
|
||||||
|
isGroup = True
|
||||||
|
|
||||||
avatarUrl = ''
|
avatarUrl = ''
|
||||||
if profileJson.get('icon'):
|
if profileJson.get('icon'):
|
||||||
if profileJson['icon'].get('url'):
|
if profileJson['icon'].get('url'):
|
||||||
|
@ -229,6 +234,10 @@ def htmlProfileAfterSearch(cssCache: {},
|
||||||
followIsPermitted = False
|
followIsPermitted = False
|
||||||
|
|
||||||
if followIsPermitted:
|
if followIsPermitted:
|
||||||
|
followStr = 'Follow'
|
||||||
|
if isGroup:
|
||||||
|
followStr = 'Join'
|
||||||
|
|
||||||
profileStr += \
|
profileStr += \
|
||||||
'<div class="container">\n' + \
|
'<div class="container">\n' + \
|
||||||
' <form method="POST" action="' + \
|
' <form method="POST" action="' + \
|
||||||
|
@ -238,7 +247,7 @@ 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[followStr] + '</button>\n' + \
|
||||||
' <button type="submit" class="button" name="submitView" ' + \
|
' <button type="submit" class="button" name="submitView" ' + \
|
||||||
'accesskey="' + accessKeys['viewButton'] + '">' + \
|
'accesskey="' + accessKeys['viewButton'] + '">' + \
|
||||||
translate['View'] + '</button>\n' + \
|
translate['View'] + '</button>\n' + \
|
||||||
|
|
Loading…
Reference in New Issue