Permalink
Browse files

Add feedback service

  • Loading branch information...
1 parent 0aa6f8c commit e3bdd0212b8c352d79e6ec342fffc173521e4de5 @cutalion committed May 23, 2012
@@ -0,0 +1,7 @@
+module FeedbackHelper
+ def feedback_widget
+ if %w(production development).include? Rails.env
+ render partial: 'shared/feedback_widget'
+ end
+ end
+end
@@ -59,3 +59,4 @@
\==================================================
/ Placed at the end of the document so the pages load faster
= javascript_include_tag "application"
+ = feedback_widget
@@ -0,0 +1,7 @@
+:javascript
+ var uvOptions = {};
+ (function() {
+ var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true;
+ uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/oY49cQGXmfvyvVrpWOw.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s);
+ })();

0 comments on commit e3bdd02

Please sign in to comment.