Skip to content

Commit

Permalink
Make User Cloud tab hideable
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalkosla101 committed Feb 13, 2023
1 parent 8b5980b commit 89585f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions physionet-django/user/templatetags/user_templatetags.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django import template
from django.conf import settings


register = template.Library()
Expand All @@ -7,6 +8,8 @@
@register.inclusion_tag('user/settings_tabs.html')
def settings_tabs(hide_password_settings: bool):
default_tabs = ['Profile', 'Emails', 'Username', 'Cloud', 'ORCID', 'Credentialing', 'Training', 'Agreements']
if settings.ENABLE_RESEARCH_ENVIRONMENTS:
default_tabs.remove('Cloud')
if not hide_password_settings:
default_tabs.insert(1, 'Password')
return {'settings_tabs': default_tabs}
Expand Down

0 comments on commit 89585f1

Please sign in to comment.