VRFS-1555 VRFS-1556 do not show private sessions and recordings
This commit is contained in:
parent
c06458550c
commit
7e2d37bac5
|
|
@ -1,6 +1,6 @@
|
|||
object @history
|
||||
|
||||
attributes :id, :music_session_id, :description, :genres, :like_count, :comment_count, :created_at
|
||||
attributes :id, :music_session_id, :description, :fan_access, :genres, :like_count, :comment_count, :created_at
|
||||
|
||||
node :share_url do |history|
|
||||
unless history.share_token.nil?
|
||||
|
|
|
|||
|
|
@ -62,6 +62,8 @@
|
|||
<%= render "clients/banners/disconnected" %>
|
||||
<%= render "overlay_small" %>
|
||||
<%= render "help" %>
|
||||
<%= render "commentDialog" %>
|
||||
|
||||
<div id="fb-root"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@
|
|||
<%= render "clients/hoverBand" %>
|
||||
<%= render "clients/hoverSession" %>
|
||||
<%= render "clients/hoverRecording" %>
|
||||
<%= render "clients/commentDialog" %>
|
||||
|
||||
<%= yield(:extra_dialogs) %>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
<% end %>
|
||||
|
||||
<div class="sessions-page">
|
||||
<% if @music_session.fan_access %>
|
||||
<div class="landing-band">
|
||||
<% unless @music_session.band.nil? %>
|
||||
<div class="landing-avatar">
|
||||
|
|
@ -37,9 +38,9 @@
|
|||
</div>
|
||||
<%= @music_session.user.name %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="landing-details">
|
||||
<div class="landing-details">
|
||||
<div class="left f20 teal"><strong>SESSION</strong></div>
|
||||
<div class="right f14 grey"><%= timeago(@music_session.created_at) %></div>
|
||||
<br clear="all" /><br />
|
||||
|
|
@ -78,10 +79,14 @@
|
|||
</div>
|
||||
<br clear="all" /><br />
|
||||
<%= render :partial => "shared/track_details", :locals => {:tracks => @music_session.grouped_tracks} %>
|
||||
</div>
|
||||
<br clear="all" />
|
||||
</div>
|
||||
</div>
|
||||
<br clear="all" />
|
||||
|
||||
<% else %>
|
||||
<div class="left f20 teal"><strong>SESSION NOT FOUND</strong></div>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
<% if true %>
|
||||
<div class="landing-sidebar" style="z-index:900;"><br />
|
||||
|
|
@ -102,31 +107,33 @@
|
|||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
<% if signed_in? %>
|
||||
<% if signed_in? && @music_session.fan_access %>
|
||||
<% unless @music_session.band.nil? %>
|
||||
<%= render :partial => "shared/landing_sidebar", :locals => {:user => @music_session.band, :recent_history => @music_session.band.recent_history} %>
|
||||
<% else %>
|
||||
<%= render :partial => "shared/landing_sidebar", :locals => {:user => @music_session.user, :recent_history => @music_session.user.recent_history} %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<% else %>
|
||||
<%= render :partial => "shared/cta_sidebar" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% content_for :after_black_bar do %>
|
||||
<% if @music_session.fan_access %>
|
||||
<% content_for :after_black_bar do %>
|
||||
<br />
|
||||
<%= render :partial => "shared/comments", :locals => {:comments => @music_session.comments, :id => "txtSessionComment"} %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% content_for :extra_dialogs do %>
|
||||
<% content_for :extra_dialogs do %>
|
||||
<%= render :partial => "clients/shareDialog" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% content_for :extra_js do %>
|
||||
<% content_for :extra_js do %>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var showMusicSession = new JK.ShowMusicSession(JK.app);
|
||||
showMusicSession.initialize("<%= @music_session.id %>");
|
||||
});
|
||||
</script>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
@ -18,6 +18,7 @@
|
|||
<% end %>
|
||||
|
||||
<div class="recordings-page">
|
||||
<% if @claimed_recording.is_public %>
|
||||
<div class="landing-band">
|
||||
<% unless @claimed_recording.recording.band.blank? %>
|
||||
<div class="landing-avatar">
|
||||
|
|
@ -90,32 +91,40 @@
|
|||
<%= render :partial => "shared/track_details", :locals => {:tracks => @claimed_recording.recording.grouped_tracks} %>
|
||||
</div>
|
||||
<br clear="all" />
|
||||
|
||||
<% else %>
|
||||
<div class="left f20 orange"><strong>RECORDING NOT FOUND</strong></div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% if signed_in? %>
|
||||
|
||||
<% if @claimed_recording.is_public %>
|
||||
<% if signed_in? %>
|
||||
<% unless @claimed_recording.recording.band.nil? %>
|
||||
<%= render :partial => "shared/landing_sidebar", :locals => {:user => @claimed_recording.recording.band, :recent_history => @claimed_recording.recording.band.recent_history} %>
|
||||
<% else %>
|
||||
<%= render :partial => "shared/landing_sidebar", :locals => {:user => @claimed_recording.recording.owner, :recent_history => @claimed_recording.recording.owner.recent_history} %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<% else %>
|
||||
<%= render :partial => "shared/cta_sidebar" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% content_for :after_black_bar do %>
|
||||
<% content_for :after_black_bar do %>
|
||||
<br />
|
||||
<%= render :partial => "shared/comments", :locals => {:comments => @claimed_recording.recording.comments, :id => "txtRecordingComment"} %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% content_for :extra_dialogs do %>
|
||||
|
||||
<% content_for :extra_dialogs do %>
|
||||
<%= render :partial => "clients/shareDialog" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% content_for :extra_js do %>
|
||||
<% content_for :extra_js do %>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var showRecording = new JK.ShowRecording(JK.app);
|
||||
showRecording.initialize("<%= @claimed_recording.id %>", "<%= @claimed_recording.recording_id %>");
|
||||
});
|
||||
</script>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue