public
Description: The kick ass (non-commercial) home for musicians and their music
Homepage: http://alonetone.com
Clone URL: git://github.com/sudara/alonetone.git
sudara (author)
Mon Mar 17 09:24:38 -0700 2008
commit  4cd5571b8b7b04d82ed535357fb6aa25380de0b3
tree    a6304f5141de495490bafb74101f6a025219311c
parent  f606d65e61011c86ae327775f8714677492bd11f
alonetone / app / views / users / bio.html.erb
100644 50 lines (44 sloc) 1.589 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  <%= pretty_text "#{h @user.name.capitalize}", :h1%><br/>
  <%= link_to(image_tag(@user.avatar(:album), :class => 'large_avatar'), profile_path(@user), :id=>'alonetoner_big') %>
  
<div id="bio">
  <div class="bio">
      <%= offer(link_to 'Click here to edit your Profile', edit_user_path(@user)) if authorized? %>
   <%= link_to "Email #{@user.name} at #{@user.email}", "mailto:#{@user.email}" if admin? %><br/>
    <% if !@user.bio.blank?%>
    <p>
     <h3>All about <%= @user.name%></h3>
     <%= @user.printable_bio %>
    </p>
    <% end %>
  </div>
  <div class="clear"></div>
  <% if !@user.website.blank? %>
  <p>
   <h3><%= @user.name %>'s Website</h3>
   <%= website_for(@user) %>
  </p>
  <% end %>
  
  <% if @user.itunes && !@user.itunes.blank? %>
   <p>
   <h3>Listen to <%= @user.name %> on iTunes</h3>
      <%= itunes_link_for(@user) %><br/>
   </p>
  <% end %>
  <% if @user.has_tracks? && authorized? %>
  <p>
   <h3>Your Podcast feed </h3>
   <%= user_feeds_url(@user, :rss) %>
   <br/>
   You can
   <%= link_to 'open itunes and submit this link', 'https://phobos.apple.com/WebObjects/MZFinance.woa/wa/publishPodcast'%>
   and get your music listed under Podcasts > Music. Make sure to update your profile after the podcast is approved!
  </p>
  <% end %>
 
  
  <p>    
   <h3>Stats</h3>
   <% if @user.listens_count > 0 %>
    People have listened to <%= @user.name %>'s <%= pluralize @user.assets_count, 'track' %> about <%= @user.listens_count %> times.<br/>
    <% end %>
   <%=@user.name%> has been on alonetone since <%= @user.created_at.to_date.to_s :long %><br/>
  </p>
</div>