Updated job view for operator

This commit is contained in:
2024-08-27 12:28:46 +02:00
parent f4068c10bd
commit 7b7ba97032
6 changed files with 102 additions and 78 deletions

View File

@@ -1,15 +1,15 @@
<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 Fachbereich AB</a>
<% if user_signed_in? && current_user.admin? || current_user.operator? %>
<% if user_signed_in? && (current_user.admin? || current_user.operator?) %>
<nav>
<ul class="flex justify-center font-semibold items-color">
<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">
<button class="px-4 py-2 cursor-default hover:text-hsrm-red border-b-4 <%= admin? && '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">
<button class="px-4 py-2 cursor-default hover:text-hsrm-red border-b-4 <%= operator? && 'border-hsrm-red-light' %>">
<%= link_to 'Operator', operator_jobs_path %>
</button>
</li>