Skip to content

Commit

Permalink
Fixed the styling changes
Browse files Browse the repository at this point in the history
Fixed the styling changes
  • Loading branch information
Rutvikrj26 committed Sep 12, 2023
1 parent 8cd6660 commit 122b71e
Show file tree
Hide file tree
Showing 2 changed files with 220 additions and 351 deletions.
21 changes: 6 additions & 15 deletions physionet-django/user/templatetags/user_templatetags.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,15 @@
register = template.Library()


@register.inclusion_tag("user/settings_tabs.html")
@register.inclusion_tag('user/settings_tabs.html')
def settings_tabs(hide_password_settings: bool):
default_tabs = [
"Profile",
"Emails",
"Username",
"Cloud",
"ORCID",
"Credentialing",
"Training",
"Certification",
"Agreements",
]
default_tabs = ['Profile', 'Emails', 'Username', 'Cloud', 'ORCID', 'Credentialing', 'Training',
'Certification', 'Agreements']
if not hide_password_settings:
default_tabs.insert(1, "Password")
return {"settings_tabs": default_tabs}
default_tabs.insert(1, 'Password')
return {'settings_tabs': default_tabs}


@register.filter(name="has_group")
@register.filter(name='has_group')
def has_group(user, group_name):
return user.groups.filter(name=group_name).exists()
Loading

0 comments on commit 122b71e

Please sign in to comment.