Skip to content

Commit

Permalink
GH-191: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Apr 14, 2021
1 parent 651a110 commit cde3be7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion taccsite_cms/default_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"a_target_type", # The target to open the new link in, use _blank for external links, _self for internal links.
"alt_text", # The text to read or render for web assistance standards.
"cors_setting", # The CORS setting for the image, set to anonymous by default.
"visibility" # Whether to display element in template
"visibility" # Toggles wether or not to display the element in the template, use True to render, False to hide.
]
Values to populate (for a dict):
Expand Down
5 changes: 4 additions & 1 deletion taccsite_cms/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
id="page-{{ request.current_page.id }}"
{# FAQ: Only available if set in page's "Advanced" settings #}
data-page-id="{{ request.current_page.reverse_id }}"
class="t-{{settings.THEME}} {% block template_class %}{% endblock template_class %}">
class="{% spaceless %}
{% if settings.THEME %}t-{{settings.THEME}}{% endif %}
{% block template_class %}{% endblock template_class %}
{% endspaceless %}">

{% if settings.FEATURES.blog %}
{# FAQ: Conditional includes are intentionally verbose #}
Expand Down
2 changes: 0 additions & 2 deletions taccsite_cms/templates/header.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{# WARNING: Some markup is duplicated in other repositories #}
{# SEE: https://confluence.tacc.utexas.edu/x/LoCnCQ #}
{# FAQ: Extra lines exist to ease CMS/Portal/Guide template comparison #}
{% load custom_portal_settings %}

<!-- Sponsor Logos -->
{% include "header_branding.html" %}

<!-- Navigation Bar -->

<nav id="s-header" class="s-header navbar {% if settings.PORTAL %}navbar-expand-xl{% else %}navbar-expand-lg{% endif %} navbar-dark">
<!-- Portal Logo -->
{% include "header_logo.html" %}
Expand Down

0 comments on commit cde3be7

Please sign in to comment.