Bootlint integration

This commit is contained in:
Sullivan SENECHAL 2015-04-01 21:33:22 +02:00
parent 16a6ea2d17
commit 15fc957163
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/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