Created
May 14, 2011 05:53
-
-
Save meltzerj/971958 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% 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