Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
eb87bbc254b0
Commit
76aade28
authored
Apr 20, 2015
by
Dmitriy Zaporozhets
Browse files
Merge pull request #9075 from Soullivaneuh/bootlint
Bootlint integration
parents
a610cb397340
eaa44f9aaded
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/views/layouts/_bootlint.haml
0 → 100644
View file @
eb87bbc2
:javascript
jQuery
(
document
).
ready
(
function
()
{
javascript
:(
function
(){
var
s
=
document
.
createElement
(
"
script
"
);
s
.
onload
=
function
(){
bootlint
.
showLintReportForCurrentDocument
([],
{
hasProblems
:
false
,
problemFree
:
false
});};
s
.
src
=
"
https://maxcdn.bootstrapcdn.com/bootlint/latest/bootlint.min.js
"
;
document
.
body
.
appendChild
(
s
)})();
});
app/views/layouts/_head.html.haml
View file @
eb87bbc2
...
...
@@ -16,6 +16,7 @@
=
render
'layouts/google_analytics'
if
extra_config
.
has_key?
(
'google_analytics_id'
)
=
render
'layouts/piwik'
if
extra_config
.
has_key?
(
'piwik_url'
)
&&
extra_config
.
has_key?
(
'piwik_site_id'
)
=
render
'layouts/bootlint'
if
Rails
.
env
==
'development'
-# Atom feed
-
if
current_user
...
...
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