Skip to content
This repository was archived by the owner on Feb 11, 2020. It is now read-only.

Commit ea6d676

Browse files
committed
Embedded Font Awesome stylesheet
1 parent f2ff635 commit ea6d676

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

bootstrap_ui/templates/bootstrap_ui/bootstrap-skeleton.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,28 @@
88

99
{% block head-css %}
1010
<!-- Bootstrap base styles -->
11-
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
11+
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css">
1212

1313
<!-- Bootstrap theme styles -->
14-
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" rel="stylesheet">
14+
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
15+
16+
<!-- Font Awesome icon font -->
17+
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
1518
{% endblock %}
1619

1720
{% block head-javascript %}
1821
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
1922
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
2023
<!--[if lt IE 9]>
21-
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
22-
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
24+
<script src="//oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
25+
<script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
2326
<![endif]-->
2427
{% endblock %}
2528

2629
{% block body-javascript %}
2730
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
28-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
31+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
2932

3033
<!-- Include all compiled plugins (below), or include individual files as needed -->
31-
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
34+
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
3235
{% endblock %}

tests/tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,5 +233,6 @@ def test_bootstrap_skeleton_is_rendered(self):
233233
rendered = self.template_bootstrap_skeleton.render(Context({}))
234234
self.assertInHTML('<meta http-equiv="X-UA-Compatible" content="IE=edge">', rendered)
235235
self.assertInHTML('<meta name="viewport" content="width=device-width, initial-scale=1">', rendered)
236-
self.assertInHTML('<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">', rendered)
237-
self.assertInHTML('<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>', rendered)
236+
self.assertInHTML('<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css">', rendered)
237+
self.assertInHTML('<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">', rendered)
238+
self.assertInHTML('<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>', rendered)

0 commit comments

Comments
 (0)