diff --git a/app/controllers/organizations/dashboard_controller.rb b/app/controllers/organizations/dashboard_controller.rb new file mode 100644 index 000000000..2a1e4c750 --- /dev/null +++ b/app/controllers/organizations/dashboard_controller.rb @@ -0,0 +1,7 @@ +class Organizations::DashboardController < Organizations::BaseController + before_action :verified_staff + + def index + @hide_footer = true + end +end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 4f7295338..e99547de6 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -30,7 +30,7 @@ <% if Current.tenant.present? %> - <%= render partial: "layouts/shared/footer" %> + <%= render partial: "layouts/shared/footer" unless @hide_footer %> <% else %> <%= render partial: "layouts/shared/no_tenant_footer" %> <% end %> diff --git a/app/views/layouts/shared/_navbar.html.erb b/app/views/layouts/shared/_navbar.html.erb index 6c35e3fc8..b27bac51e 100644 --- a/app/views/layouts/shared/_navbar.html.erb +++ b/app/views/layouts/shared/_navbar.html.erb @@ -49,13 +49,8 @@ <% end %> <% if current_user.staff_account && current_user.staff_account.verified %>
  • - <%= link_to pets_path, class: 'dropdown-item' do %> - Our Pets - <% end %> -
  • -
  • - <%= link_to adopter_applications_path, class: 'dropdown-item' do %> - Applications + <%= link_to dashboard_index_path, class: 'dropdown-item' do %> + Dashboard <% end %>
  • <% end %> diff --git a/app/views/organizations/dashboard/_navbar.html.erb b/app/views/organizations/dashboard/_navbar.html.erb new file mode 100644 index 000000000..35d2b48ed --- /dev/null +++ b/app/views/organizations/dashboard/_navbar.html.erb @@ -0,0 +1,105 @@ + + + \ No newline at end of file diff --git a/app/views/organizations/dashboard/index.html.erb b/app/views/organizations/dashboard/index.html.erb new file mode 100644 index 000000000..81932aa6c --- /dev/null +++ b/app/views/organizations/dashboard/index.html.erb @@ -0,0 +1,4 @@ +
    + <%= render 'organizations/dashboard/navbar' %> + <%= yield :dashboard_content %> +
    \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 124692190..bc05645f3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -17,6 +17,7 @@ scope module: :organizations do resources :home, only: [:index] resources :pets + resources :dashboard end resources :profile_reviews, only: [:show]