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
fixed .present? and more css bugglets
sudara (author)
Wed Apr 09 01:14:04 -0700 2008
commit  11c3dcf631eb3e01a63aa773cb2a461604e9a0e3
tree    497d67734b7c55ac13cfe0e80d0ca655390f5e68
parent  a6b746f9eb36ba890f1060c001b4d573bbcbf857
...
10
11
12
 
13
14
15
...
10
11
12
13
14
15
16
0
@@ -10,6 +10,7 @@ class UserReportsController < ApplicationController
0
     respond_to do |format|
0
       format.html # index.html.erb
0
       format.xml { render :xml => @user_reports }
0
+ format.rss
0
     end
0
   end
0
 
...
4
5
6
 
 
 
7
8
9
...
13
14
15
16
 
 
17
18
19
...
4
5
6
7
8
9
10
11
12
...
16
17
18
 
19
20
21
22
23
0
@@ -4,6 +4,9 @@
0
   
0
   <div class="user_title">
0
     <h1 class="user"><%=h @user.name %></h1><%= user_location(@user) %>
0
+ <% if authorized? %>
0
+ <%= link_to 'edit your profile', edit_user_path(@user), :class => 'edit' %>
0
+ <% end %>
0
   </div>
0
   <div id="user_links">
0
     <ul class="user_links">
0
@@ -13,7 +16,8 @@
0
      <%= user_nav_item "Profile", profile_path(@user) if @user.bio %>
0
   
0
       <%= user_nav_item "Email", "mailto://#{@user.email}","contact" if admin? %>
0
- <%= user_nav_item "iTunes", "http://#{@user.itunes}","contact" if @user.itunes && !@user.itunes.empty? %>
0
+ <%= user_nav_item "Myspace", "http://myspace.com/#{@user.myspace}","contact" if @user.present?(:myspace)%>
0
+ <%= user_nav_item "iTunes", "http://#{@user.itunes}","contact" if @user.present?(:itunes) %>
0
       <%= user_nav_item "Sudo", sudo_user_path(@user),"contact" if (admin? || @sudo)%>
0
     </ul>
0
   </div>
...
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
...
37
38
39
40
41
42
43
44
45
46
47
48
 
49
50
51
...
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
...
37
38
39
 
 
 
40
41
42
43
44
 
45
46
47
48
0
@@ -2,31 +2,31 @@
0
 
0
   <% content_for :left do %>
0
     <div id="bio" class="box">
0
- <h2 class="box">All about <%=h @user.name %></h2>
0
- <div class="bio">
0
- <%= offer(link_to 'Edit your Profile', edit_user_path(@user)) if authorized? %>
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.bio.blank?%>
0
+ <% if @user.present?(:bio) %>
0
           <p>
0
- <h3>All about <%= @user.name%></h3>
0
            <%= @user.printable_bio %>
0
           </p>
0
           <% end %>
0
- </div>
0
- <div class="clear"></div>
0
- <% if !@user.website.blank? %>
0
- <p>
0
- <h3><%= @user.name %>'s Website</h3>
0
- <%= website_for(@user) %>
0
- </p>
0
+ </div>
0
+
0
+ <% if @user.present?(:website) %>
0
+ <p class="website static_content">
0
+ <%= website_for(@user) %>
0
+ </p>
0
       <% end %>
0
-
0
+
0
+
0
       <% if @user.present?(:itunes) %>
0
- <p>
0
- <h3>Listen to <%= @user.name %> on iTunes</h3>
0
- <%= itunes_link_for(@user) %><br/>
0
+ <p class="itunes static_content">
0
+ <%= itunes_link_for(@user) %>
0
        </p>
0
       <% end %>
0
+
0
       <% if @user.has_tracks? && authorized? %>
0
       <p>
0
        <h3>Your Podcast feed </h3>
0
@@ -37,15 +37,12 @@
0
        and get your music listed under Podcasts > Music. Make sure to update your profile after the podcast is approved!
0
       </p>
0
       <% end %>
0
-
0
-
0
-
0
     </div>  
0
   <% end %>
0
   
0
   <% content_for :right do %>
0
     <%= link_to(image_tag(@user.avatar(:album), :class => 'large_avatar'), profile_path(@user), :id=>'alonetoner_big') %>
0
- <h3><%= @user.name %>'s stats</h3>
0
+ <h2 class="box static"><%= @user.name %>'s stats</h2>
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 %>
...
25
26
27
28
 
29
30
31
...
25
26
27
 
28
29
30
31
0
@@ -25,7 +25,7 @@ class Object
0
     attribute = attribute.to_sym
0
     if respond_to? attribute
0
       result = send attribute
0
- result.empty? ? false : result
0
+ return result if (result && !result.empty?)
0
     end
0
     false
0
   end
...
225
226
227
 
 
 
 
228
229
230
...
225
226
227
228
229
230
231
232
233
234
0
@@ -225,6 +225,10 @@
0
   :padding 15px 25px
0
   :background #e1e2e1
0
   :line-height 18px
0
+ :margin-bottom 1px
0
+
0
+#alonetoner_big
0
+ :margin-bottom 40px
0
 
0
 // recent listeners
0
 #recent_listeners
...
88
89
90
91
 
92
93
94
95
96
97
98
99
 
 
 
 
 
 
 
 
 
100
101
102
103
...
88
89
90
 
91
92
93
 
 
 
 
 
 
94
95
96
97
98
99
100
101
102
103
104
105
106
0
@@ -88,15 +88,18 @@ div.flash
0
   :padding 20px 30px
0
   :margin-bottom 20px
0
 
0
-a.arrows, a.view_more, a.view_all
0
+a.arrows, a.view_more, a.view_all,a.edit
0
   :background url(../images/buttons/arrow.png) no-repeat right center
0
   :padding-right 12px
0
-.content a.view_all
0
- :color = !text_color
0
- :position relative
0
- :float right
0
- :margin-top -31px
0
- :margin-right 25px
0
+.content
0
+ a.view_all, a.edit
0
+ :color = !text_color
0
+ :position relative
0
+ :float right
0
+ :margin-top -31px
0
+ :margin-right 25px
0
+
0
+
0
   
0
 div.fieldWithErrors input
0
   :border = !orange 2px solid
0
\ No newline at end of file

Comments

    No one has commented yet.