forked from sudara/alonetone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_big_share.html.erb
19 lines (17 loc) · 1.23 KB
/
_big_share.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<h2 class="box">Share this track</h2>
<div class="share box">
<div class="static_content">
The link to this page (the song's "home"):<br/>
<%= text_field_tag "home_#{id}", user_track_url(@asset.user, @asset.permalink), :size => 40,:class => 'tabbed_input' %> <br/>
Direct download link:<br/>
<%= text_field_tag "link_#{id}", user_track_url(@asset.user, @asset.permalink, :format => :mp3), :size => 40, :class => 'tabbed_input' %>
</div>
<div class="static_content ">
<h3>Embedded Flash Player (for myspace, blog, etc)</h3>
<%= text_area_tag 'flash_player', "<embed src=\"#{FLASH_PLAYER}\" width=\"250\" height=\"20\" allowfullscreen=\"true\" allowscriptaccess=\"always\" flashvars=\"&file=#{user_track_url(@asset.user, @asset.permalink, :format => :mp3)}&height=20&width=250&frontcolor=0x3C3C3C&backcolor=0xf3f3f3&lightcolor=0xFF944B&screencolor=0xFF944B&showdigits=false\" />", :rows => 4, :cols =>40 %>
(customize how it looks by visiting <%= link_to 'the setup wizard', 'http://www.jeroenwijering.com/?page=wizard&example=2'%>)
</div>
<div class="static_content">
<%= render :partial => 'add_to_facebook', :object => @asset if ALONETONE.enable_facebook %>
</div>
</div>