diff --git a/app/assets/stylesheets/application.tailwind.css b/app/assets/stylesheets/application.tailwind.css index bfdf3ea..7dae164 100644 --- a/app/assets/stylesheets/application.tailwind.css +++ b/app/assets/stylesheets/application.tailwind.css @@ -9,7 +9,7 @@ --color-warning: rgb(255, 202, 40); --color-accept: rgb(121, 134, 203); --color-danger: rgb(239, 83, 80); - --color-table-border: rgb(203, 213, 225); + --color-table-border: rgb(130, 144, 158); /* theme */ --color-base-background: rgb(39, 44, 56); @@ -179,15 +179,15 @@ /*Base Table*/ .base-table { - @apply min-w-full divide-y divide-table-border whitespace-nowrap border border-table-border + @apply min-w-full whitespace-nowrap border border-table-border } .base-table th { - @apply bg-default px-2 py-2 text-left font-semibold text-default-slate-dark lg:table-cell + @apply bg-base-text px-2 py-2 text-left font-bold lg:table-cell } .base-table td { - @apply border-t border-table-border px-2 py-1 text-default-slate lg:table-cell whitespace-nowrap + @apply border-t border-table-border px-2 py-1 lg:table-cell whitespace-nowrap } } @@ -205,6 +205,7 @@ ::-webkit-scrollbar { width: 6px; height: 6px; + padding: 4px; } ::-webkit-scrollbar-track { diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0d95db2..bf99a64 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,4 +1,12 @@ class ApplicationController < ActionController::Base # Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has. allow_browser versions: :modern + + before_action :set_controllers + + private + + def set_controllers + @controllers = Controller.all + end end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ec6429d..642f042 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -23,22 +23,25 @@ - + <%= turbo_frame_tag :modals %> -
+
<%= render "partials/header" %> -
-
- <% if flash[:notice] %> -
- <%= raw flash[:notice] %> -
- <% elsif flash[:alert] %> -
- <%= raw flash[:alert] %> -
- <% end %> - <%= yield %> +
+ <%= render "partials/sidebar" %> +
+
+ <% if flash[:notice] %> +
+ <%= raw flash[:notice] %> +
+ <% elsif flash[:alert] %> +
+ <%= raw flash[:alert] %> +
+ <% end %> + <%= yield %> +
diff --git a/app/views/partials/_sidebar.html.erb b/app/views/partials/_sidebar.html.erb index f2f9f61..a51fa6d 100644 --- a/app/views/partials/_sidebar.html.erb +++ b/app/views/partials/_sidebar.html.erb @@ -7,30 +7,16 @@ HOME - - - + <% @controllers.each do |c| %> + <%= link_to view_schedule_path(c.id), class: "menu-group" do %> + + + <% end %> + <% end %>