diff --git a/app/controllers/admin/education/programs_controller.rb b/app/controllers/admin/education/programs_controller.rb index 8518639e4aac8e4b871cd96dbd51b6c80dffb7a1..827626d8b105e2e31a7ceff9f3e55b0bca81c99d 100644 --- a/app/controllers/admin/education/programs_controller.rb +++ b/app/controllers/admin/education/programs_controller.rb @@ -24,6 +24,7 @@ class Admin::Education::ProgramsController < Admin::Education::ApplicationContro if @program.save redirect_to [:admin, @program], notice: "Program was successfully created." else + breadcrumb render :new, status: :unprocessable_entity end end @@ -32,6 +33,8 @@ class Admin::Education::ProgramsController < Admin::Education::ApplicationContro if @program.update(program_params) redirect_to [:admin, @program], notice: "Program was successfully updated." else + breadcrumb + add_breadcrumb t('edit') render :edit, status: :unprocessable_entity end end diff --git a/app/views/admin/education/programs/new.html.erb b/app/views/admin/education/programs/new.html.erb index 8fb3beee6168a70cf27218b3adc412e6e26952fc..cdc255d20bd4c59f476034f6513a675bcc3c2eec 100644 --- a/app/views/admin/education/programs/new.html.erb +++ b/app/views/admin/education/programs/new.html.erb @@ -1,3 +1,3 @@ -<% content_for :title, Features::Education::Program.model_name.human %> +<% content_for :title, Education::Program.model_name.human %> <%= render 'form', program: @program %> diff --git a/app/views/admin/research/journal/articles/_list.html.erb b/app/views/admin/research/journal/articles/_list.html.erb index be4a388a7bb2ca48e2b95f831546998d13344f63..c80df1ffeeffebd2f6bee5d93be4aa0e2f8bacdf 100644 --- a/app/views/admin/research/journal/articles/_list.html.erb +++ b/app/views/admin/research/journal/articles/_list.html.erb @@ -9,7 +9,7 @@ <tbody> <% articles.each do |article| %> <tr> - <td class="ps-0"><%= link_to article, [:admin, article] %></td> + <td class="ps-0"><%= link_to article, admin_research_journal_article_path(journal_id: @journal, id: article) %></td> <td><%= article.published_at %></td> <td class="text-end pe-0"> <%= edit_link article %>