Permalink
Browse files

- add remove

  • Loading branch information...
1 parent 355faf6 commit c7ee8588952db3e593b12a2c1f9ce7e2b6eb478e @sr3d committed Jan 29, 2012
@@ -15,7 +15,7 @@ def new
def destroy
@interview = Interview.find params[:id]
@interview.destroy
- redirect_to event_path @event.id
+ redirect_to event_path params[:event_id]
end
@@ -2,7 +2,9 @@
<div class="audio_wrapper">
<a href="<%= event_interview_path(@event, interview) %>" class="link">
Audio recording by <%= interview.user.full_name %>
- </a>
+ </a>
+ <a href="<%= event_interview_path(@event, interview) %>" data-method="DELETE" class="pink delete">Delete</a>
+
<a href="<%= interview.url %>" target="_blank" class="play">Play</a>
<div>Posted <%= time_ago_in_words interview.created_at %> ago</div>
<div class="engage_in_discussion_wrapper"><a href="<%= event_interview_path(@event, interview.id) %>">Engage In Discussion</a></div>
@@ -12,6 +14,7 @@
<a href="<%= event_interview_path(@event, interview) %>" class="link">
Video recording by <%= interview.user.full_name %>
</a>
+ <a href="<%= event_interview_path(@event, interview) %>" data-method="DELETE" class="pink delete">Delete</a>
<div>Posted <%= time_ago_in_words interview.created_at %> ago</div>
<div class="engage_in_discussion_wrapper"><a href="<%= event_interview_path(@event, interview.id) %>">Engage In Discussion</a></div>
</div>
@@ -54,6 +54,8 @@ body { padding: 0; margin: 0; color: white; }
.video_wrapper { background: url('../images/camera.png') no-repeat 7px 0px; padding-left: 50px; padding-bottom: 10px; border-bottom: 1px solid #DCDCDC; margin-bottom: 20px;}
.engage_in_discussion_wrapper a { text-decoration: underline }
+.audio_wrapper .delete, .video_wrapper .delete { display: none; }
+.audio_wrapper:hover .delete, .video_wrapper:hover .delete { display: inline-block; }
.attendant { padding: 3px 0px; }

0 comments on commit c7ee858

Please sign in to comment.