Renamed helper function or tab selector
This commit is contained in:
@@ -4,17 +4,17 @@
|
||||
<nav>
|
||||
<ul class="flex justify-center space-x-2 font-semibold items-color">
|
||||
<li class="relative">
|
||||
<button class="px-4 py-2 cursor-default hover:text-hsrm-red border-b-4 <%= profile? && 'border-hsrm-red-light' %>">
|
||||
<button class="px-4 py-2 cursor-default hover:text-hsrm-red border-b-4 <%= profile_tab? && 'border-hsrm-red-light' %>">
|
||||
<%= link_to "Profil", profile_path %>
|
||||
</button>
|
||||
</li>
|
||||
<li class="relative">
|
||||
<button class="px-4 py-2 cursor-default <%= current_user.admin? && 'hover:text-hsrm-red' || 'text-hsrm-gray-light' %> border-b-4 <%= admin? && 'border-hsrm-red-light' %>">
|
||||
<button class="px-4 py-2 cursor-default <%= current_user.admin? && 'hover:text-hsrm-red' || 'text-hsrm-gray-light' %> border-b-4 <%= admin_tab? && 'border-hsrm-red-light' %>">
|
||||
<%= link_to_if current_user.admin?, "Admin", admin_dashboard_path %>
|
||||
</button>
|
||||
</li>
|
||||
<li class="relative">
|
||||
<button class="px-4 py-2 cursor-default hover:text-hsrm-red border-b-4 <%= operator? && 'border-hsrm-red-light' %>">
|
||||
<button class="px-4 py-2 cursor-default hover:text-hsrm-red border-b-4 <%= operator_tab? && 'border-hsrm-red-light' %>">
|
||||
<%= link_to 'Operator', operator_jobs_path %>
|
||||
</button>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user