Skip to content

Commit

Permalink
feat/remove bookings from mobile and desktop menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
cancelei committed Feb 5, 2025
1 parent 13da58e commit 6752a92
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/views/shared/_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
<div class="hidden sm:ml-6 sm:flex sm:space-x-8">
<%= link_to "Dashboard", root_path,
class: "#{current_page?(root_path) ? 'border-blue-500 text-gray-900' : 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700'} inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" %>

<%= link_to "Bookings", bookings_path,
class: "#{current_page?(bookings_path) ? 'border-blue-500 text-gray-900' : 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700'} inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" %>

<% if current_user&.role_driver? %>
<%= link_to "My Vehicles", driver_profile_vehicles_path(current_user.driver_profile),
class: "#{current_page?(driver_profile_vehicles_path(current_user.driver_profile)) ? 'border-blue-500 text-gray-900' : 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700'} inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" if current_user.driver_profile %>
Expand Down Expand Up @@ -76,9 +72,6 @@
<%= link_to "Dashboard", root_path,
class: "#{current_page?(root_path) ? 'bg-blue-50 border-blue-500 text-blue-700' : 'border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700'} block pl-3 pr-4 py-2 border-l-4 text-base font-medium" %>

<%= link_to "Bookings", bookings_path,
class: "#{current_page?(bookings_path) ? 'bg-blue-50 border-blue-500 text-blue-700' : 'border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700'} block pl-3 pr-4 py-2 border-l-4 text-base font-medium" %>

<% if current_user&.role_driver? %>
<%= link_to "My Vehicles", driver_profile_vehicles_path(current_user.driver_profile),
class: "#{current_page?(driver_profile_vehicles_path(current_user.driver_profile)) ? 'bg-blue-50 border-blue-500 text-blue-700' : 'border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700'} block pl-3 pr-4 py-2 border-l-4 text-base font-medium" if current_user.driver_profile %>
Expand Down

0 comments on commit 6752a92

Please sign in to comment.