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

research

parent 78889314
No related branches found
No related tags found
No related merge requests found
<% content_for :title, Research::Laboratory::Axis.model_name.human(count: 2) %>
<%= render 'admin/research/laboratory/axes/list', axes: @axes %>
<%= render 'admin/research/laboratories/axes/list', axes: @axes %>
<% content_for :action_bar_right do %>
<%= create_link Research::Laboratory::Axis %>
......
......@@ -11,7 +11,7 @@
<%= link_to Research::Laboratory::Axis.model_name.human(count: 2),
admin_research_laboratory_axes_path(laboratory_id: @laboratory) %></h2>
</div>
<%= render 'admin/research/laboratory/axes/list', axes: @axes %>
<%= render 'admin/research/laboratories/axes/list', axes: @axes %>
</div>
<% content_for :action_bar_left do %>
......
......@@ -7,7 +7,7 @@
<div class="card-header">
<h2 class="card-title mb-0 h5"><%= "#{Research::Journal::Article.model_name.human(count: 2)} (#{@articles.total_count})" %></h2>
</div>
<%= render 'admin/research/journal/articles/list', articles: @articles %>
<%= render 'admin/research/journals/articles/list', articles: @articles %>
<% if @articles.total_pages > 1 %>
<div class="card-footer">
<%= paginate @articles, theme: 'bootstrap-5' %>
......
namespace :research do
resources :researchers, only: [:index, :show]
resources :journals do
resources :volumes, controller: 'journal/volumes'
resources :articles, controller: 'journal/articles' do
resources :volumes, controller: 'journals/volumes'
resources :articles, controller: 'journals/articles' do
collection do
post :reorder
end
end
end
resources :laboratories do
resources :axes, controller: 'laboratory/axes' do
resources :axes, controller: 'laboratories/axes' do
collection do
post :reorder
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