-
-
Notifications
You must be signed in to change notification settings - Fork 89
/
show.html.erb
49 lines (35 loc) · 1.66 KB
/
show.html.erb
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
<% render(:layout => 'user') do %>
<div id="user_home">
<% if authorized? %>
<div class="additional_options">
<div class="button_wrapper">
<%= link_to " ", new_user_playlist_path(@user), :id => 'create_new_playlist', :class => 'button' %>
</div>
<% if @user.playlists.public.size > 2 %>
<div class="button_wrapper">
<%= link_to " ", sort_user_playlists_path(@user), :id => 'change_playlist_order', :class => 'button' %>
</div>
<% end %>
</div>
<% end %>
<% if @user.has_public_playlists? %>
<h2 id="user_latest_playlists">Latest Playlists by <%=@user.name%></h2>
<%= render :partial => 'shared/carousel' %>
<div class="clear"> </div>
<% end %>
<% content_for :left do %>
<%= render :partial => 'latest' if @user.assets_count > 0 %>
<%= render :partial => 'favorites' if @favorites.present? %>
<%= render :partial => 'follows' if @mostly_listens_to.present? or @follows.present? %>
<%= render :partial => 'listens' if @listens.size > 0 %>
<%= image_tag @user.track_plays_graph if authorized? %>
<%= render :partial => 'track_plays' if authorized? && @user.listens_count > 0 %>
<% end %>
<% content_for :right do %>
<%= render :partial => 'popular' if @popular_tracks.present? && (setting('most_popular', @user) == 'true')%>
<% #cache(cache_digest(@comments)) do # doesn't work if new private comments show, also date/times are off %>
<%= render :partial => 'shared/comments' if @comments.size > 0 %>
<% #end %>
<% end %>
</div>
<% end %>