From 9125814daf9864a32b4a89e9076d6d4680b39e09 Mon Sep 17 00:00:00 2001 From: Louis Knapp Date: Sun, 24 Jul 2016 08:18:53 -0500 Subject: [PATCH] lk | adds some bottom padding to the nav links on bike edit form --- app/assets/stylesheets/bikes.css.scss | 4 ++++ app/views/bikes/edit.html.haml | 17 +++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/bikes.css.scss b/app/assets/stylesheets/bikes.css.scss index c95effe..b5d47a4 100644 --- a/app/assets/stylesheets/bikes.css.scss +++ b/app/assets/stylesheets/bikes.css.scss @@ -1,3 +1,7 @@ // Place all the styles related to the Bikes controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ + +.bottom-nav-links { + padding-bottom: 5rem; +} diff --git a/app/views/bikes/edit.html.haml b/app/views/bikes/edit.html.haml index 636027e..9da1592 100644 --- a/app/views/bikes/edit.html.haml +++ b/app/views/bikes/edit.html.haml @@ -5,12 +5,13 @@ .col-sm-3.col-sm-offset-3 =button_to "Mark as sold", {action: "mark_as_sold", id: @bike.id}, method: :patch, class: "btn btn-default" = render 'edit_form' - - if @next_bike - = link_to 'Next Bike', edit_bike_path(@next_bike) - - else - = link_to 'New Bike', new_bike_path - | - = link_to 'All Bikes', bikes_path - - if @previous_bike + .bottom-nav-links + - if @next_bike + = link_to 'Next Bike', edit_bike_path(@next_bike) + - else + = link_to 'New Bike', new_bike_path | - = link_to 'Previous Bike', edit_bike_path(@previous_bike) + = link_to 'All Bikes', bikes_path + - if @previous_bike + | + = link_to 'Previous Bike', edit_bike_path(@previous_bike)