Skip to content

Commit

Permalink
Merge pull request #58 from TACC/quick/add-a2cps-in-taccsite_custom
Browse files Browse the repository at this point in the history
This adds template, but not v1 styles. For v1 styles see #59.
  • Loading branch information
wesleyboar authored Jul 12, 2021
2 parents 244b943 + 940a5a0 commit 0a374ce
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
6 changes: 3 additions & 3 deletions a2cps-cms/secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
# DJANGO SETTINGS
########################

_LDAP_ENABLED = False
_LDAP_ENABLED = True

########################
# DJANGO CMS SETTINGS
########################

_CMS_TEMPLATES = (
('a2cps-cms/templates/fullwidth.html', 'Fullwidth'),
# Support standard template for demo purposes\
# Support standard template for demo purposes
# NOTE: A2CPS will use this instead if it need not load `migration.v1_v2.css
# ('fullwidth.html', 'Standard Fullwidth'),
)
Expand Down Expand Up @@ -59,4 +59,4 @@
# PORTAL
########################

_PORTAL = False
_PORTAL = True
19 changes: 19 additions & 0 deletions a2cps-cms/templates/fullwidth.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% load cms_tags staticfiles %}

{% block title %}{% page_attribute "page_title" %}{% endblock title %}

{% block assets_font %}
{{ block.super }}
{% endblock assets_font %}

{% block content %}
{% placeholder "content" %}
{% endblock content %}

{% block assets_custom %}
{{ block.super }}

<!-- TODO: GH-56 a.k.a. TACC/Core-CMS#245: Pending v1 styles -->
<link rel="stylesheet" href="{% static 'a2cps-cms/css/build/site.css' %}">
{% endblock assets_custom %}

0 comments on commit 0a374ce

Please sign in to comment.