From b2484ec59a04db5159a1a24ac8d9f8a33253d11e Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Mon, 30 Jan 2023 09:56:51 +0100 Subject: [PATCH] Fix --- app/views/admin/communication/websites/pages/_form.html.erb | 5 ++--- app/views/admin/research/theses/show.html.erb | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/admin/communication/websites/pages/_form.html.erb b/app/views/admin/communication/websites/pages/_form.html.erb index ddf7c3914..c9b287d2e 100644 --- a/app/views/admin/communication/websites/pages/_form.html.erb +++ b/app/views/admin/communication/websites/pages/_form.html.erb @@ -19,8 +19,7 @@ url = page.new_record? ? admin_communication_website_pages_path </div> <div class="col-md-4"> <% unless page.is_home? %> - <section class="mb-5"> - <h2 class="h3"><%= t('metadata') %></h2> + <%= osuny_panel t('metadata') do %> <%= f.input :published if page.draftable? %> <%= f.input :slug, as: :string, @@ -41,7 +40,7 @@ url = page.new_record? ? admin_communication_website_pages_path value_method: ->(p) { p[:id] } unless page.is_home? %> <%= f.input :bodyclass if can?(:edit, @website) %> <%= f.input :full_width if page.editable_width? %> - </section> + <% end %> <% else %> <% if @website.languages.many? %> <div class="card flex-fill w-100"> diff --git a/app/views/admin/research/theses/show.html.erb b/app/views/admin/research/theses/show.html.erb index 9ed9ecded..52ae8eb49 100644 --- a/app/views/admin/research/theses/show.html.erb +++ b/app/views/admin/research/theses/show.html.erb @@ -4,7 +4,7 @@ <div class="col-xl-6"> <%= simple_format @thesis.abstract %> </div> - <div class="col-xl-6"> + <div class="offset-xl-1 col-xl-5"> <% if @thesis.started_at %> <%= osuny_label Research::Thesis.human_attribute_name('started_at') %> <p><%= l @thesis.started_at %></p> -- GitLab