Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
76aade28
Commit
76aade28
authored
Apr 20, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9075 from Soullivaneuh/bootlint
Bootlint integration
parents
a4006a6b
15fc9571
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
app/views/layouts/_bootlint.haml
app/views/layouts/_bootlint.haml
+4
-0
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+1
-0
No files found.
app/views/layouts/_bootlint.haml
0 → 100644
View file @
76aade28
: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 @
76aade28
...
...
@@ -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