mirror of
https://github.com/fspc/bike-database.git
synced 2025-02-23 01:23:24 -05:00
lk | switches position of next bike link and previous bike link
This commit is contained in:
parent
ba036cd808
commit
0ee1168f6a
@ -6,12 +6,12 @@
|
|||||||
=button_to "Mark as sold", {action: "mark_as_sold", id: @bike.id}, method: :patch, class: "btn btn-default"
|
=button_to "Mark as sold", {action: "mark_as_sold", id: @bike.id}, method: :patch, class: "btn btn-default"
|
||||||
= render 'edit_form'
|
= render 'edit_form'
|
||||||
.bottom-nav-links
|
.bottom-nav-links
|
||||||
- if @next_bike
|
- if @previous_bike
|
||||||
= link_to 'Next Bike', edit_bike_path(@next_bike)
|
= link_to 'Previous Bike', edit_bike_path(@previous_bike)
|
||||||
- else
|
- else
|
||||||
= link_to 'New Bike', new_bike_path
|
= link_to 'New Bike', new_bike_path
|
||||||
|
|
|
|
||||||
= link_to 'All Bikes', bikes_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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user