Merge pull request #9075 from Soullivaneuh/bootlint
Bootlint integration
This commit is contained in:
commit
76aade28e2
2 changed files with 5 additions and 0 deletions
4
app/views/layouts/_bootlint.haml
Normal file
4
app/views/layouts/_bootlint.haml
Normal file
|
@ -0,0 +1,4 @@
|
|||
: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)})();
|
||||
});
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue