Skip to content

Loading…

Issue #41 #45

Closed
wants to merge 3 commits into from

1 participant

This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +1 −0 app/views/episodes/show.html.erb
  2. +1 −1 app/views/layouts/application.html.erb
  3. +5 −0 public/javascripts/google.js
View
1 app/views/episodes/show.html.erb
@@ -30,6 +30,7 @@
</div>
<div class="social">
<a href="http://twitter.com/share" class="twitter-share-button" data-url="<%= episode_url(@episode) %>" data-text="Watching <%= @episode.name %> on RailsCasts" data-count="horizontal" data-via="railscasts">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
+ <g:plusone size="medium"></g:plusone>
</div>
<ul class="downloads horizontal">
<li>Download:</li>
View
2 app/views/layouts/application.html.erb
@@ -7,7 +7,7 @@
<meta name="keywords" content="rails, ruby on rails, screencasts, railscast, railscasts, tips, tricks, tutorials, training, podcasts, programming" />
<link rel="alternate" type="application/rss+xml" title="Episodes RSS" href="http://feeds.feedburner.com/railscasts" />
<%= stylesheet_link_tag "application", "coderay" %>
- <%= javascript_include_tag "jquery.min", "rails", "http://cdn.sublimevideo.net/js/3s7oes9q.js", "application" %>
+ <%= javascript_include_tag "jquery.min", "rails", "http://cdn.sublimevideo.net/js/3s7oes9q.js", "application", "google" %>
<%= csrf_meta_tag %>
<%= yield(:head) %>
</head>
View
5 public/javascripts/google.js
@@ -0,0 +1,5 @@
+(function() {
+ var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
+ po.src = 'https://apis.google.com/js/plusone.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
+})();
Something went wrong with that request. Please try again.