diff --git a/app/controllers/admin/dashboard_controller.rb b/app/controllers/admin/dashboard_controller.rb index 1cebd3e8db6918ffa35ea8850b3964650f013f24..bec6f2d82b3d6e9cbd2bfcf02aab4f78c8e5d6b9 100644 --- a/app/controllers/admin/dashboard_controller.rb +++ b/app/controllers/admin/dashboard_controller.rb @@ -1,6 +1,6 @@ class Admin::DashboardController < Admin::ApplicationController def index - @chapters = [ + @namespaces = [ Education, Research, Communication, diff --git a/app/views/admin/dashboard/index.html.erb b/app/views/admin/dashboard/index.html.erb index 9c2b259fb899a994d401f3d87a72add47f501abd..371d61af2d74740cfc456c730fdddd59334239e6 100644 --- a/app/views/admin/dashboard/index.html.erb +++ b/app/views/admin/dashboard/index.html.erb @@ -84,13 +84,13 @@ <% end %> <div class="row mt-5 pt-5"> - <% @chapters.each do |class_name| %> + <% @namespaces.each do |namespace| %> <% - path = send "admin_#{class_name.to_s.downcase}_root_path" - description = t "#{class_name.to_s.downcase}.description.text" + path = send "admin_#{namespace.to_s.downcase}_root_path" + description = t "#{namespace.to_s.downcase}.description.text" %> <div class="col-lg-3"> - <%= osuny_panel class_name.model_name.human, image: "admin/#{class_name.to_s.downcase}.jpg" do %> + <%= osuny_panel namespace.model_name.human, image: "admin/#{namespace.to_s.downcase}.jpg" do %> <p><%= description.truncate 180 %></p> <%= link_to t('show'), path, class: 'stretched-link' %> <% end %>