Browse Source

better twitter button

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
33104546b3
  1. 13
      app/views/fragments/_top.html.erb

13
app/views/fragments/_top.html.erb

@ -19,10 +19,15 @@
<div id="user-navigation"> <div id="user-navigation">
<ul class="wat-cf"> <ul class="wat-cf">
<li> <li>
<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script> <%= link_to 'Tweet', "https://twitter.com/share", :class => "twitter-share-button",
<%= link_to 'Tweet', :data => {
"https://twitter.com/share?text=EntryDNS a nice free DNS service&url=#{root_url}", :url => root_url,
:class => "twitter-share-button" %> :text => "EntryDNS a nice free DNS service",
:count => "horizontal",
:via => "entrydns",
:related => "_clyfe:vaijab"
} %>
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
</li> </li>
<% if user_signed_in? %> <% if user_signed_in? %>
<li><%= link_to('Help & Support', page_path('help'), :data => {:pjax => '#main'}) %></li> <li><%= link_to('Help & Support', page_path('help'), :data => {:pjax => '#main'}) %></li>

Loading…
Cancel
Save