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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
15fc9571
Commit
15fc9571
authored
Apr 01, 2015
by
Sullivan SENECHAL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bootlint integration
parent
16a6ea2d
Changes
2
Show 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 @
15fc9571
: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 @
15fc9571
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
=
render
'layouts/google_analytics'
if
extra_config
.
has_key?
(
'google_analytics_id'
)
=
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/piwik'
if
extra_config
.
has_key?
(
'piwik_url'
)
&&
extra_config
.
has_key?
(
'piwik_site_id'
)
=
render
'layouts/bootlint'
if
Rails
.
env
==
'development'
-# Atom feed
-# Atom feed
-
if
current_user
-
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