From a91c80f7130a2378a5c5ef5d706f470c5cc2d8b1 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 24 Jan 2023 15:35:16 +0100 Subject: [PATCH] fix --- app/views/admin/dashboard/index.html.erb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/views/admin/dashboard/index.html.erb b/app/views/admin/dashboard/index.html.erb index 457710341..75b8f7170 100644 --- a/app/views/admin/dashboard/index.html.erb +++ b/app/views/admin/dashboard/index.html.erb @@ -1,6 +1,14 @@ <% content_for :title, t('admin.dashboard') %> -<% classes = 'col-md-6 col-xl-4 d-flex' %> +<% content_for :title_right do %> + <% if current_university.logo.attached? %> + <%= image_tag current_university.logo, width: 120 %> + <% else %> + <%= current_university %> + <% end %> +<% end %> + +<% classes = 'col-md-6 col-xl-4 d-flex' %> <div class="row mb-5"> <div class="col-md-6 pb-4"> <%= osuny_panel t('hello', name: current_user.first_name) do %> @@ -17,13 +25,6 @@ </p> <%= link_to 'Changer de thème', admin_set_theme_path(theme: 'appstack'), method: :put, class: button_classes %> <% end %> - <div class="text-end"> - <% if current_university.logo.attached? %> - <%= image_tag current_university.logo, width: 120 %> - <% else %> - <%= current_university %> - <% end %> - </div> <% end %> </div> <div class="col-md-6 pb-4"> -- GitLab