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
small fixes to user bio
sudara (author)
Tue Apr 22 14:31:42 -0700 2008
commit  b544dc16ede0f820c1d5cbc35c2afa401efc36b7
tree    9b704ce0bc7cb5b70bc0de3e7d639b50184d4929
parent  40d5dc9db4bee9a673a770f1cbcc2d8d7f1cc84a
...
4
5
6
7
8
9
10
 
11
12
 
 
 
 
 
 
13
14
15
 
16
17
18
...
49
50
51
52
 
53
54
55
...
4
5
6
 
 
7
 
8
9
 
10
11
12
13
14
15
16
 
 
17
18
19
20
...
51
52
53
 
54
55
56
57
0
@@ -4,15 +4,17 @@
0
     <div id="bio" class="box">
0
       <h2 class="box static">All about <%=h @user.name %></h2>
0
       <%= link_to 'Edit', edit_user_path(@user),:class=>'edit' if authorized? %>
0
-
0
- <div class="bio static_content">
0
 
0
- <% if @user.present?(:bio) %>
0
+ <div class="bio static_content">
0
           <p>
0
- <%= @user.printable_bio %>
0
+ <% if @user.present?(:bio) %>
0
+ <%= @user.printable_bio %>
0
+ <% else %>
0
+ <%=h @user.name %> doesn't have anything to say, unfortunately...
0
+ <% end %>
0
+
0
           </p>
0
- <% end %>
0
- </div>
0
+ </div>
0
       
0
       <% if @user.present?(:website) %>
0
         <div class="bio static_content">
0
@@ -49,7 +51,7 @@
0
     <h2 class="box static"><%= @user.name %>'s stats</h2>
0
     
0
     <div class="bio static_content">
0
- Last seen <%= time_ago_in_words(@user.last_seen_at)%> ago <br />
0
+ Last seen <%= time_ago_in_words(@user.last_seen_at || @user.created_at)%> ago <br />
0
    <% if @user.listens_count > 0 %>
0
       People have listened to <%= @user.name %>'s <%= pluralize @user.assets_count, 'track' %> about <%= @user.listens_count %> times.<br/>
0
       <% end %>

Comments

    No one has commented yet.