diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-20 16:03:43 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-20 16:03:43 +0300 |
commit | 76aade28e25d1f6e8924b35ed9bd365c8889987f (patch) | |
tree | 7ff37c5d6664c639a3c5f5cf0e1bdd6fb2da3e5b | |
parent | a4006a6b4840c990adf5293d7c611b2fa798a5bf (diff) | |
parent | 15fc9571630390d913aaf4e6aa7d3e880b684367 (diff) |
Merge pull request #9075 from Soullivaneuh/bootlint
Bootlint integration
-rw-r--r-- | app/views/layouts/_bootlint.haml | 4 | ||||
-rw-r--r-- | app/views/layouts/_head.html.haml | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/app/views/layouts/_bootlint.haml b/app/views/layouts/_bootlint.haml new file mode 100644 index 00000000000..69280687a9d --- /dev/null +++ b/app/views/layouts/_bootlint.haml @@ -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)})(); + }); diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml index d12145651af..78d6d08ee1f 100644 --- a/app/views/layouts/_head.html.haml +++ b/app/views/layouts/_head.html.haml @@ -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 |