From 0ee1168f6a4d56788ab22900fbf90c7bb40a8281 Mon Sep 17 00:00:00 2001 From: Louis Knapp Date: Sat, 30 Jul 2016 20:15:34 -0500 Subject: [PATCH] lk | switches position of next bike link and previous bike link --- app/views/bikes/edit.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/bikes/edit.html.haml b/app/views/bikes/edit.html.haml index 9da1592..c1240fa 100644 --- a/app/views/bikes/edit.html.haml +++ b/app/views/bikes/edit.html.haml @@ -6,12 +6,12 @@ =button_to "Mark as sold", {action: "mark_as_sold", id: @bike.id}, method: :patch, class: "btn btn-default" = render 'edit_form' .bottom-nav-links - - if @next_bike - = link_to 'Next Bike', edit_bike_path(@next_bike) + - if @previous_bike + = link_to 'Previous Bike', edit_bike_path(@previous_bike) - else = link_to 'New Bike', new_bike_path | = link_to 'All Bikes', bikes_path - - if @previous_bike + - if @next_bike | - = link_to 'Previous Bike', edit_bike_path(@previous_bike) + = link_to 'Next Bike', edit_bike_path(@next_bike)