Merge pull request #9075 from Soullivaneuh/bootlint

Bootlint integration
This commit is contained in:
Dmitriy Zaporozhets 2015-04-20 16:03:43 +03:00
commit 76aade28e2
2 changed files with 5 additions and 0 deletions

View 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)})();
});

View file

@ -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