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