-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Remove CA State Web Template (#2526)
- Remove CA State Web Template dependency, replace with Bootstrap - Remove CA State Web Template domain from CSP
- Loading branch information
Showing
12 changed files
with
36 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,23 +16,17 @@ | |
<title>{% block page-title %}{% endblock page-title %}| {% translate "Cal-ITP Benefits" %}</title> | ||
{# djlint:on #} | ||
|
||
{% block preload %}{% endblock preload %} | ||
{% block preload %} | ||
{% endblock preload %} | ||
|
||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet" type="text/css"> | ||
|
||
{% comment %} | ||
CA State Template v6.0.7 comes with Bootstrap v5.1.3 | ||
See https://github.com/Office-of-Digital-Services/California-State-Web-Template/releases/tag/v6.0.7 | ||
{% endcomment %} | ||
<link href="https://california.azureedge.net/cdt/statetemplate/6.0.7/css/cagov.core.min.css" rel="stylesheet"> | ||
|
||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
rel="stylesheet" | ||
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" | ||
crossorigin="anonymous"> | ||
<link href="{% static "css/styles.css" %}" rel="stylesheet"> | ||
<link href="{% static "img/favicon.ico" %}" rel="icon" type="image/x-icon" /> | ||
|
||
{% comment %} | ||
CA State Template v6.0.7 does not include jQuery | ||
See https://github.com/Office-of-Digital-Services/California-State-Web-Template/releases/tag/v6.0.7 | ||
{% endcomment %} | ||
<script nonce="{{ request.csp_nonce }}" | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" | ||
integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" | ||
|
@@ -149,15 +143,8 @@ | |
|
||
</footer> | ||
|
||
{% comment %} | ||
CA State Template v6.0.7 comes with Bootstrap v5.1.3 | ||
see https://github.com/Office-of-Digital-Services/California-State-Web-Template/releases/tag/v6.0.7 | ||
|
||
But we aren't using CA State Template Javascript, so include Bootstrap directly | ||
{% endcomment %} | ||
<script nonce="{{ request.csp_nonce }}" | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" | ||
crossorigin="anonymous"></script> | ||
|
||
<script nonce="{{ request.csp_nonce }}"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters