diff --git a/app/assets/stylesheets/components/_card_role_model.scss b/app/assets/stylesheets/components/_card_role_model.scss index f8d8bdd..223e5c2 100644 --- a/app/assets/stylesheets/components/_card_role_model.scss +++ b/app/assets/stylesheets/components/_card_role_model.scss @@ -71,6 +71,7 @@ hr { object-fit: cover; display: inline-block; margin-bottom: 40px; + object-position: top; } .card_icon { font-size: 20px; diff --git a/app/assets/stylesheets/pages/_dashboard.scss b/app/assets/stylesheets/pages/_dashboard.scss index b0657ab..d406532 100644 --- a/app/assets/stylesheets/pages/_dashboard.scss +++ b/app/assets/stylesheets/pages/_dashboard.scss @@ -1,3 +1,4 @@ + .titles { display: flex; justify-content: space-between; diff --git a/app/controllers/participations_controller.rb b/app/controllers/participations_controller.rb index aa7ecd4..5b7a026 100644 --- a/app/controllers/participations_controller.rb +++ b/app/controllers/participations_controller.rb @@ -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 diff --git a/app/views/pages/_non_done_card.html.erb b/app/views/pages/_non_done_card.html.erb index aaa0d44..045768f 100644 --- a/app/views/pages/_non_done_card.html.erb +++ b/app/views/pages/_non_done_card.html.erb @@ -1,5 +1,5 @@
<%= participation.challenge.title %>
<%= participation.challenge.description %>
diff --git a/app/views/pages/dashboard.html.erb b/app/views/pages/dashboard.html.erb index c45951d..53ab68f 100644 --- a/app/views/pages/dashboard.html.erb +++ b/app/views/pages/dashboard.html.erb @@ -1,11 +1,14 @@ <%= content_for(:page, "dashboard") %>