Skip to content

Commit

Permalink
added share link
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismatthieu committed Oct 9, 2010
1 parent d21abeb commit 9f00688
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fapps.facebook.com%2Ftelephone&amp;layout=button_count&amp;show_faces=true&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>
</p>
<p>
Share Link
<!-- <a href="http://www.facebook.com/sharer.php?u=http://apps.facebook.com/telephone&amp;t=I just discovered Facebook Telephone a new telephone service for Facebook! http://apps.facebook.com/telephone" target="_parent"><button type="button"><span>Share link</span></button> </a> -->
<%= button_to_redbox('Share link', :inline_share, html_options = {})%>
</p>
</div>

Expand Down Expand Up @@ -83,6 +84,17 @@
</center>
</div>
</div>

<div id="inline_share" style="display: none">
<div style="width: 450px">
<%= link_to_close_redbox(raw('<img src="/images/close-btn.png" align="right" width="24" height="24" class="close-btn" border="0">'), html_options = {}) %>
<center>
<iframe src="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fapps.facebook.com%2Ftelephone&amp;t=I just discovered Facebook Telephone a new telephone service for Facebook! http%3A%2F%2Fapps.facebook.com%2Ftelephone" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:100px;" allowTransparency="true"></iframe>


</center>
</div>
</div>


<%= yield %>
Expand Down

0 comments on commit 9f00688

Please sign in to comment.