diff --git a/app/assets/images/underconstruction.avif b/app/assets/images/underconstruction.avif new file mode 100644 index 0000000..7d0a5c4 Binary files /dev/null and b/app/assets/images/underconstruction.avif differ diff --git a/app/controllers/construction_controller.rb b/app/controllers/construction_controller.rb new file mode 100644 index 0000000..10621dc --- /dev/null +++ b/app/controllers/construction_controller.rb @@ -0,0 +1,5 @@ +class ConstructionController < ApplicationController + def index + + end +end diff --git a/app/controllers/work_with_ecp_controller.rb b/app/controllers/work_with_ecp_controller.rb new file mode 100644 index 0000000..b28b6aa --- /dev/null +++ b/app/controllers/work_with_ecp_controller.rb @@ -0,0 +1,5 @@ +class WorkWithEcpController < ApplicationController + def index + + end +end diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb index 99d6702..c83666c 100644 --- a/app/helpers/nav_helper.rb +++ b/app/helpers/nav_helper.rb @@ -1,9 +1,11 @@ module NavHelper - def link_highlight(path:) - active?(path:) ? 'active' : '' + def link_highlight(paths:) + active?(paths:) ? 'active' : '' end - def active?(path:) - current_page?(path) + def active?(paths:) + paths.any? do |path| + current_page?(path) + end end end diff --git a/app/views/construction/index.html.erb b/app/views/construction/index.html.erb new file mode 100644 index 0000000..83aa064 --- /dev/null +++ b/app/views/construction/index.html.erb @@ -0,0 +1,5 @@ +
+
+ <%= image_tag "underconstruction.avif" %> +
+
diff --git a/app/views/layouts/_nav.html.erb b/app/views/layouts/_nav.html.erb index e037ddc..136f45f 100644 --- a/app/views/layouts/_nav.html.erb +++ b/app/views/layouts/_nav.html.erb @@ -1,3 +1,5 @@ +<%#
  • %> +