Added snippet admin and profile editing
This commit is contained in:
parent
aa79c72ae0
commit
d87cbff134
14 changed files with 228 additions and 40 deletions
|
|
@ -133,3 +133,12 @@ def format_timedelta(delta, granularity='second', threshold=.85):
|
|||
rv += u's'
|
||||
return rv
|
||||
return u''
|
||||
|
||||
|
||||
def display_openid(openid):
|
||||
if not openid:
|
||||
return ''
|
||||
rv = openid
|
||||
if rv.startswith(('http://', 'https://')):
|
||||
rv = rv.split('/', 2)[-1]
|
||||
return rv.rstrip('/')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue