신규 추가 작업 중
This commit is contained in:
@@ -1,2 +1,10 @@
|
||||
module ApplicationHelper
|
||||
def full_height_page?
|
||||
controller_name.in?(%w[environment nutrient schedules]) && action_name == 'index' || action_name == 'schedule_edit'
|
||||
end
|
||||
|
||||
def content_container_classes
|
||||
base_classes = "flex-1 h-full pb-0 px-0 lg:pb-4 lg:px-4"
|
||||
full_height_page? ? base_classes : "#{base_classes} overflow-y-auto"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
module DeviceHelper
|
||||
end
|
||||
2
app/helpers/environment_helper.rb
Normal file
2
app/helpers/environment_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module EnvironmentHelper
|
||||
end
|
||||
2
app/helpers/nutrient_helper.rb
Normal file
2
app/helpers/nutrient_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module NutrientHelper
|
||||
end
|
||||
2
app/helpers/rack_helper.rb
Normal file
2
app/helpers/rack_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module RackHelper
|
||||
end
|
||||
@@ -1,2 +0,0 @@
|
||||
module WebHelper
|
||||
end
|
||||
Reference in New Issue
Block a user