Skip to content

Commit

Permalink
animate last participation
Browse files Browse the repository at this point in the history
  • Loading branch information
lordinatrice committed Jun 14, 2019
1 parent 87a432b commit b3367fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/participations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def create
@participation = Participation.new(challenge: @challenge, user: current_user)
if @participation.save
flash[:notice] = "YAASS Let's get challenged ! 🎉"
redirect_to dashboard_path
redirect_to dashboard_path(participation_id: @participation.id)
else
flash[:alert] = "Oops! 😱 a problem has occurred"
redirect_to dashboard_path
Expand Down
2 changes: 1 addition & 1 deletion app/views/pages/_non_done_card.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="follow" data-participation-id="<%= participation.id %>">
<div class="notification">
<div class="notification <%= 'animated fadeInLeft' if params[:participation_id].to_i == participation.id %> ">
<div class="notification-content align-items-center">
<p><strong><%= participation.challenge.title %></strong></p>
<p id="sub-description"><%= participation.challenge.description %></p>
Expand Down

0 comments on commit b3367fe

Please sign in to comment.