Skip to content

Instantly share code, notes, and snippets.

@meltzerj
Created May 14, 2011 05:53
Show Gist options
  • Select an option

  • Save meltzerj/971958 to your computer and use it in GitHub Desktop.

Select an option

Save meltzerj/971958 to your computer and use it in GitHub Desktop.
<% if current_user.profiles_shown_video.where("video_id = ?", params[:id]).count == 0 %>
<p class="none"> None </p>
<% else %>
<ul class="shown_users_list">
<% current_user.profiles_shown_video.where("video_id = ?", params[:id]).each do |p| %>
<li><%= link_to image_tag(p.photo.url(:thumbnail)), profile_path(p), :class => "feed_image"%>
<%= link_to "#{p.user.name}", profile_path(p), :class => "normal squeeze" %>
<%= link_to image_tag("/images/facebox/closelabel.gif"), showable_video_path(ShowableVideo.find_by_user_id_and_profile_id_and_video_id(current_user, p, @video)), :method => :delete, :remote => true, :class => "showable_video_delete" %></li>
<% end %>
</ul>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment