diff --git a/taccsite_cms/default_secrets.py b/taccsite_cms/default_secrets.py index 131a90510..feb9be711 100644 --- a/taccsite_cms/default_secrets.py +++ b/taccsite_cms/default_secrets.py @@ -294,70 +294,3 @@ ######################## _PORTAL = False # True for any CMS that is part of a Portal. - -""" -Portal Links - -Usage: - -- For each link used in the templating, add new links values (see example below). -- New links must be added to the _PORTAL_AUTH_LINKS and _PORTAL_UNAUTH_LINKS lists. - -Values to populate: - -_NAMED_LINK = { # The name of the link object. - "name": "…", # The name of the link (to distinguish it, as if for ID). - "url": "…", # The URL path to which the link should navigate the user. - "text": "…", # The text of the link. - "icon": "…", # The icon of the link. -} - -Links Configuration Example. - -_ANY_AUTH_LINK = { - "name": "section-1", - "url": "/some/section/", - "text": "Visit Section", - "icon": "some-section", -} - -_ANY_UNAUTH_LINK = { - "name": "action-1", - "url": "/some-action/", - "text": "Do Action", - "icon": "some-action", -} - -""" - -######################## -# LINKS (for Portal). - -_DASH_AUTH_LINK = { - "name": "dash", - "url": "/workbench/dashboard/", - "text": "My Dashboard", - "icon": "desktop", -} -_PROFILE_AUTH_LINK = { - "name": "profile", - "url": "/accounts/profile/", - "text": "My Account", - "icon": "user-circle", -} -_LOGOUT_AUTH_LINK = { - "name": "logout", - "url": "/accounts/logout/", - "text": "Log Out", - "icon": "sign-out-alt", -} - -_LOGIN_UNAUTH_LINK = { - "name": "login", - "url": "/login/", - "text": "Log In", - "icon": "sign-in-alt", -} - -_PORTAL_AUTH_LINKS = [ _DASH_AUTH_LINK, _PROFILE_AUTH_LINK, _LOGOUT_AUTH_LINK ] # Default TACC Portal. -_PORTAL_UNAUTH_LINKS = [ _LOGIN_UNAUTH_LINK ] # Default TACC Portal. diff --git a/taccsite_cms/settings.py b/taccsite_cms/settings.py index 6198f8e9c..530c2d3fd 100644 --- a/taccsite_cms/settings.py +++ b/taccsite_cms/settings.py @@ -96,8 +96,6 @@ def getsecrets(): # Configure Portal. PORTAL = current_secrets._PORTAL -PORTAL_AUTH_LINKS = current_secrets._PORTAL_AUTH_LINKS -PORTAL_UNAUTH_LINKS = current_secrets._PORTAL_UNAUTH_LINKS # Optional features. FEATURES = current_secrets._FEATURES @@ -490,8 +488,6 @@ def get_subdirs_as_module_names(path): 'LOGO', 'FAVICON', 'PORTAL', - 'PORTAL_AUTH_LINKS', - 'PORTAL_UNAUTH_LINKS', 'FEATURES', 'GOOGLE_ANALYTICS_PROPERTY_ID', 'GOOGLE_ANALYTICS_PRELOAD' diff --git a/taccsite_cms/static/site_cms/css/src/_imports/trumps/s-portal-nav.html b/taccsite_cms/static/site_cms/css/src/_imports/trumps/s-portal-nav.html index 2f964c13a..64bac34ea 100644 --- a/taccsite_cms/static/site_cms/css/src/_imports/trumps/s-portal-nav.html +++ b/taccsite_cms/static/site_cms/css/src/_imports/trumps/s-portal-nav.html @@ -1,42 +1,37 @@