Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
proto3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
70
Issues
70
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
protokollsystem
proto3
Commits
473676a5
Commit
473676a5
authored
Mar 31, 2019
by
Robin Sonnabend
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to get bootstrap and jquery from a cdn
parent
6074e130
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
configproxy.py
configproxy.py
+5
-0
templates/layout.html
templates/layout.html
+12
-3
No files found.
configproxy.py
View file @
473676a5
...
...
@@ -472,6 +472,11 @@ CONFIG_SECTIONS = [
required
=
False
,
internal
=
False
,
description
=
"Protocol used by this website. "
"Either 'http' or 'https'."
),
ConfigEntry
(
name
=
"CDN_URL"
,
default
=
None
,
required
=
False
,
internal
=
False
,
description
=
"URL to get bootstrap and jQuery from."
)
],
check
=
check_server_name
,
description
=
"Where is the website hosted"
),
...
...
templates/layout.html
View file @
473676a5
...
...
@@ -5,7 +5,11 @@
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"description"
content=
"Protokollsystem"
/>
<link
rel=
"stylesheet"
href=
"{{url_for("
static
",
filename=
"css/bootstrap.min.css"
)}}"
>
{% if config.CDN_URL is defined %}
<link
rel=
"stylesheet"
href=
"{{[config.CDN_URL, "
bootstrap
/
css
/
bootstrap.min.css
"]|
join
("/")}}"
>
{% else %}
<link
rel=
"stylesheet"
href=
"{{url_for("
static
",
filename=
"css/bootstrap.min.css"
)}}"
>
{% endif %}
<link
rel=
"stylesheet"
href=
"{{url_for("
static
",
filename=
"css/style.css"
)}}"
/>
{% block additional_js %}
{% endblock %}
...
...
@@ -73,6 +77,11 @@ Diese Seite ist leer.
{% endblock %}
</div>
<script
src=
"{{url_for("
static
",
filename=
"js/jquery.min.js"
)}}"
></script>
<script
src=
"{{url_for("
static
",
filename=
"js/bootstrap.min.js"
)}}"
></script>
{% if config.CDN_URL is defined %}
<script
src=
"{{[config.CDN_URL, "
jquery
/
jquery.min.js
"]|
join
("/")}}"
></script>
<script
src=
"{{[config.CDN_URL, "
bootstrap
/
js
/
bootstrap.min.js
"]|
join
("/")}}"
></script>
{% else %}
<script
src=
"{{url_for("
static
",
filename=
"js/jquery.min.js"
)}}"
></script>
<script
src=
"{{url_for("
static
",
filename=
"js/bootstrap.min.js"
)}}"
></script>
{% endif %}
</body>
Lars Beckers
@larsb
mentioned in issue
#223 (closed)
·
Apr 03, 2019
mentioned in issue
#223 (closed)
mentioned in issue #223
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment