Skip to content

Commit

Permalink
- add remove
Browse files Browse the repository at this point in the history
  • Loading branch information
sr3d committed Jan 29, 2012
1 parent 355faf6 commit c7ee858
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/interviews_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
5 changes: 4 additions & 1 deletion app/views/events/_interview_info.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions public/stylesheets/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down

0 comments on commit c7ee858

Please sign in to comment.