Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
2e0f9ff5
Commit
2e0f9ff5
authored
7 years ago
by
Tom Robinson
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #4730 from metabase/cleanup-index-html
Cleanup index.html
parents
651fde00
1c636494
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/frontend_client/index_template.html
+40
-42
40 additions, 42 deletions
resources/frontend_client/index_template.html
with
40 additions
and
42 deletions
resources/frontend_client/index_template.html
+
40
−
42
View file @
2e0f9ff5
<!DOCTYPE html>
<html
lang=
"en"
ng-app=
"metabase"
class=
"no-js"
>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
...
...
@@ -12,50 +12,48 @@
<title>
Metabase
</title>
<script
type=
"text/javascript"
>
window
.
MetabaseBootstrap
=
{{{
bootstrap_json
}}};
window
.
MetabaseBootstrap
=
{{{
bootstrap_json
}}};
</script>
</head>
<body>
<div
id=
"root"
/>
<div
style=
"display: none;"
ng-controller=
"Metabase"
ng-view
/>
</body>
<div
id=
"root"
></div>
<script
type=
"text/javascript"
>
// Load scripts asyncronously after the page has finished loading
(
function
()
{
function
loadScript
(
src
,
onload
)
{
var
script
=
document
.
createElement
(
'
script
'
);
script
.
type
=
"
text/javascript
"
;
script
.
async
=
true
;
script
.
src
=
src
;
if
(
onload
)
script
.
onload
=
onload
;
document
.
body
.
appendChild
(
script
);
}
loadScript
(
'
https://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js
'
,
function
()
{
WebFont
.
load
({
google
:
{
families
:
[
"
Lato:n3,n4,n9
"
]
}
});
});
var
googleAuthClientID
=
window
.
MetabaseBootstrap
.
google_auth_client_id
;
if
(
googleAuthClientID
)
{
loadScript
(
'
https://apis.google.com/js/api:client.js
'
);
}
})();
</script>
<script
type=
"text/javascript"
>
// Load scripts asyncronously after the page has finished loading
(
function
()
{
function
loadScript
(
src
,
onload
)
{
var
script
=
document
.
createElement
(
'
script
'
);
script
.
type
=
"
text/javascript
"
;
script
.
async
=
true
;
script
.
src
=
src
;
if
(
onload
)
script
.
onload
=
onload
;
document
.
body
.
appendChild
(
script
);
}
loadScript
(
'
https://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js
'
,
function
()
{
WebFont
.
load
({
google
:
{
families
:
[
"
Lato:n3,n4,n9
"
]
}
});
});
var
googleAuthClientID
=
window
.
MetabaseBootstrap
.
google_auth_client_id
;
if
(
googleAuthClientID
)
{
loadScript
(
'
https://apis.google.com/js/api:client.js
'
);
}
})();
</script>
<script>
(
function
(
i
,
s
,
o
,
g
,
r
,
a
,
m
){
i
[
'
GoogleAnalyticsObject
'
]
=
r
;
i
[
r
]
=
i
[
r
]
||
function
(){
(
i
[
r
].
q
=
i
[
r
].
q
||
[]).
push
(
arguments
)},
i
[
r
].
l
=
1
*
new
Date
();
a
=
s
.
createElement
(
o
),
m
=
s
.
getElementsByTagName
(
o
)[
0
];
a
.
async
=
1
;
a
.
src
=
g
;
m
.
parentNode
.
insertBefore
(
a
,
m
)
})(
window
,
document
,
'
script
'
,
'
https://www.google-analytics.com/analytics.js
'
,
'
ga
'
);
// if we are not doing tracking then go ahead and disable GA now so we never even track the initial pageview
const
tracking
=
window
.
MetabaseBootstrap
.
anon_tracking_enabled
;
const
ga_code
=
window
.
MetabaseBootstrap
.
ga_code
;
if
(
!
tracking
)
{
window
[
'
ga-disable-
'
+
ga_code
]
=
true
;
}
ga
(
'
create
'
,
ga_code
,
'
auto
'
);
</script>
<script
type=
"text/javascript"
>
(
function
(
i
,
s
,
o
,
g
,
r
,
a
,
m
){
i
[
'
GoogleAnalyticsObject
'
]
=
r
;
i
[
r
]
=
i
[
r
]
||
function
(){
(
i
[
r
].
q
=
i
[
r
].
q
||
[]).
push
(
arguments
)},
i
[
r
].
l
=
1
*
new
Date
();
a
=
s
.
createElement
(
o
),
m
=
s
.
getElementsByTagName
(
o
)[
0
];
a
.
async
=
1
;
a
.
src
=
g
;
m
.
parentNode
.
insertBefore
(
a
,
m
)
})(
window
,
document
,
'
script
'
,
'
https://www.google-analytics.com/analytics.js
'
,
'
ga
'
);
// if we are not doing tracking then go ahead and disable GA now so we never even track the initial pageview
const
tracking
=
window
.
MetabaseBootstrap
.
anon_tracking_enabled
;
const
ga_code
=
window
.
MetabaseBootstrap
.
ga_code
;
if
(
!
tracking
)
{
window
[
'
ga-disable-
'
+
ga_code
]
=
true
;
}
ga
(
'
create
'
,
ga_code
,
'
auto
'
);
</script>
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment