Skip to content

Commit 1eb1a81

Browse files
Eric HurstEric Hurst
authored andcommitted
added Uservoice feedback tab
1 parent d7acb36 commit 1eb1a81

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

app/views/layouts/application.html.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919

2020
<%= render :partial => 'shared/footer' %>
2121
</div>
22-
<!--Google Analytics-->
22+
2323
<%= render :partial => "shared/analytics" %>
24-
<!--End Google Analytics-->
2524
</body>
2625
</html>
Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
<!--Uservoice Feedback Tab-->
2+
<script type="text/javascript">
3+
var uservoiceJsHost = ("https:" == document.location.protocol) ? "https://uservoice.com" : "http://cdn.uservoice.com";
4+
document.write(unescape("%3Cscript src='" + uservoiceJsHost + "/javascripts/widgets/tab.js' type='text/javascript'%3E%3C/script%3E"))
5+
</script>
6+
<script type="text/javascript">
7+
UserVoice.Tab.show({
8+
key: 'hexminr',
9+
host: 'hexminr.uservoice.com',
10+
forum: 'general',
11+
alignment: 'left',
12+
background_color:'#090',
13+
text_color: 'white',
14+
hover_color: '#CCC',
15+
lang: 'en'
16+
})
17+
</script>
18+
<!--end uservoice feedback tab-->
19+
20+
<!--Google Analytics-->
121
<script type="text/javascript">
222
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
323
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
@@ -6,4 +26,5 @@ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.
626
try {
727
var pageTracker = _gat._getTracker("UA-7328746-2");
828
pageTracker._trackPageview();
9-
} catch(err) {}</script>
29+
} catch(err) {}</script>
30+
<!--end google analytics-->

0 commit comments

Comments
 (0)