mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
Serve the IE8 polyfills from local
This commit is contained in:
parent
674704609b
commit
54b2c5918f
@ -10,6 +10,8 @@
|
||||
"jquery-ui-dist": "^1.12.1",
|
||||
"jquery.quicksearch": "^2.4.0",
|
||||
"jtimeout": "^3.1.0",
|
||||
"multiselect": "^0.9.12"
|
||||
"multiselect": "^0.9.12",
|
||||
"html5shiv": "^3.7.3",
|
||||
"respond.js": "^1.4.2"
|
||||
}
|
||||
}
|
||||
|
@ -64,9 +64,15 @@ js_main = Bundle('node_modules/jquery/dist/jquery.js',
|
||||
filters=(ConcatFilter, 'jsmin'),
|
||||
output='generated/main.js')
|
||||
|
||||
js_ie8 = Bundle('node_modules/html5shiv/dist/html5shiv.js',
|
||||
'node_modules/respond.js/dest/respond.min.js',
|
||||
filters=(ConcatFilter, 'jsmin'),
|
||||
output='generated/ie8.js')
|
||||
|
||||
assets = Environment()
|
||||
assets.register('js_login', js_login)
|
||||
assets.register('js_validation', js_validation)
|
||||
assets.register('css_login', css_login)
|
||||
assets.register('js_main', js_main)
|
||||
assets.register('css_main', css_main)
|
||||
assets.register('js_ie8', js_ie8)
|
||||
|
@ -20,12 +20,13 @@
|
||||
{% if SETTING.get('custom_css') %}
|
||||
<link rel="stylesheet" href="/static/custom/{{ SETTING.get('custom_css') }}">
|
||||
{% endif %}
|
||||
{% assets "js_ie8" -%}
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
|
||||
<![endif]-->
|
||||
{%- endassets %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body class="hold-transition skin-blue sidebar-mini {% if not SETTING.get('fullscreen_layout') %}layout-boxed{% endif %}">
|
||||
|
@ -15,12 +15,13 @@
|
||||
{% if SETTING.get('custom_css') %}
|
||||
<link rel="stylesheet" href="/static/custom/{{ SETTING.get('custom_css') }}">
|
||||
{% endif %}
|
||||
{% assets "js_ie8" -%}
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
|
||||
<![endif]-->
|
||||
{%- endassets %}
|
||||
</head>
|
||||
|
||||
<body class="hold-transition login-page">
|
||||
|
@ -12,12 +12,13 @@
|
||||
<link rel="stylesheet" href="{{ ASSET_URL }}">
|
||||
{%- endassets %}
|
||||
|
||||
{% assets "js_ie8" -%}
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
|
||||
<![endif]-->
|
||||
{%- endassets %}
|
||||
</head>
|
||||
|
||||
<body class="hold-transition register-page">
|
||||
|
Loading…
Reference in New Issue
Block a user