Show current jobs in navbar for everyone

This commit is contained in:
2024-09-16 08:29:58 +02:00
parent 7144fea077
commit 0116e94475

View File

@@ -1,13 +1,13 @@
<header class="container flex items-center justify-between px-4 py-6 mx-auto border-b-2 border-gray-300">
<a href="/" class="text-4xl font-bold text-hsrm-gray">Plottservice FAB</a>
<% if user_signed_in? %>
<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 <%= root_tab? && 'border-hsrm-red-light' %>">
<%= link_to "Aktuelle Druckaufträge", root_path %>
</button>
</li>
<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 <%= root_tab? && 'border-hsrm-red-light' %>">
<%= link_to "Aktuelle Druckaufträge", root_path %>
</button>
</li>
<% if user_signed_in? %>
<li class="relative">
<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 %>
@@ -25,9 +25,9 @@
</button>
</li>
<% end %>
</ul>
</nav>
<% end %>
<% end %>
</ul>
</nav>
<nav>
<ul class="flex items-center">
<% if user_signed_in? %>