Skip to content
Snippets Groups Projects
Commit a2c3b96c authored by Arnaud Levy's avatar Arnaud Levy
Browse files

refactor

parent 22af2f4c
No related branches found
No related tags found
No related merge requests found
Showing
with 53 additions and 36 deletions
class Admin::Administration::ApplicationController < Admin::ApplicationController
def index
@namespace = Administration
breadcrumb
render 'admin/dashboard/namespace'
end
protected
def breadcrumb
......
class Admin::Administration::DashboardController < Admin::Administration::ApplicationController
def index
@namespace = Administration
breadcrumb
render 'admin/dashboard/namespace'
end
end
class Admin::Communication::ApplicationController < Admin::ApplicationController
def index
@namespace = Communication
breadcrumb
render 'admin/dashboard/namespace'
end
protected
def breadcrumb
......
class Admin::Communication::DashboardController < Admin::Communication::ApplicationController
def index
@namespace = Communication
breadcrumb
render 'admin/dashboard/namespace'
end
end
class Admin::Education::ApplicationController < Admin::ApplicationController
def index
@namespace = Education
breadcrumb
render 'admin/dashboard/namespace'
end
protected
def breadcrumb
......
class Admin::Education::DashboardController < Admin::Education::ApplicationController
def index
@namespace = Education
breadcrumb
render 'admin/dashboard/namespace'
end
end
class Admin::Research::ApplicationController < Admin::ApplicationController
def index
@namespace = Research
breadcrumb
render 'admin/dashboard/namespace'
end
protected
def breadcrumb
......
class Admin::Research::DashboardController < Admin::Research::ApplicationController
def index
@namespace = Research
breadcrumb
render 'admin/dashboard/namespace'
end
end
class Admin::University::ApplicationController < Admin::ApplicationController
def index
@namespace = University
breadcrumb
render 'admin/dashboard/namespace'
end
protected
def breadcrumb
......
class Admin::University::DashboardController < Admin::University::ApplicationController
def index
@namespace = University
breadcrumb
render 'admin/dashboard/namespace'
end
end
......@@ -50,7 +50,9 @@ context ||= :admin
image = 'avatar.jpg'
end
%>
<%= image_tag image, class: 'image', loading: :lazy %>
<%= link_to admin_user_path(current_user) do %>
<%= image_tag image, class: 'image', loading: :lazy %>
<% end %>
<h2><%= link_to current_user.to_s, admin_user_path(current_user) %></h2>
<ul>
<li><%= link_to t('menu.profile'), edit_user_registration_path %></li>
......
......@@ -3,5 +3,5 @@ namespace :administration do
resources :criterions, only: [:index, :show]
resources :indicators, only: [:index, :show]
end
root to: 'application#index'
root to: 'dashboard#index'
end
......@@ -70,5 +70,5 @@ namespace :communication do
resources :imports, only: [:index, :show, :new, :create]
end
end
root to: 'application#index'
root to: 'dashboard#index'
end
......@@ -41,5 +41,5 @@ namespace :education do
get :static
end
end
root to: 'application#index'
root to: 'dashboard#index'
end
......@@ -28,5 +28,5 @@ namespace :research do
end
end
resources :theses
root to: 'application#index'
root to: 'dashboard#index'
end
......@@ -30,5 +30,5 @@ namespace :university do
get :static
end
end
root to: 'application#index'
root to: 'dashboard#index'
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment