From e76b3db1b8e5ecea474047d3ad183fd907749f7a Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 29 Mar 2022 08:28:12 +0200 Subject: [PATCH] api --- .../admin/communication/website/posts/index.html.erb | 7 +++++-- app/views/api/dashboard/index.html.erb | 9 +++++++-- app/views/api/layouts/application.html.erb | 4 ++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/app/views/admin/communication/website/posts/index.html.erb b/app/views/admin/communication/website/posts/index.html.erb index e64a085ec..814a431bf 100644 --- a/app/views/admin/communication/website/posts/index.html.erb +++ b/app/views/admin/communication/website/posts/index.html.erb @@ -11,9 +11,12 @@ </div> <% end %> -<% content_for :action_bar_right do %> - <%= create_link Communication::Website::Post %> +<% content_for :action_bar_left do %> <%= link_to t('communication.website.posts.new_curation'), new_admin_communication_website_post_curation_path(website_id: @website.id), class: button_classes if can?(:create, Communication::Website::Post) %> <% end %> + +<% content_for :action_bar_right do %> + <%= create_link Communication::Website::Post %> +<% end %> diff --git a/app/views/api/dashboard/index.html.erb b/app/views/api/dashboard/index.html.erb index 5a1d57b88..07de5eec1 100644 --- a/app/views/api/dashboard/index.html.erb +++ b/app/views/api/dashboard/index.html.erb @@ -1,5 +1,10 @@ <% content_for :title, 'API' %> <h2>Lhéo</h2> -<p>Langage Harmonisé d'Échange d'informations sur l'Offre de formation</p> -<%= link_to 'API Lhéo', api_lheo_path %> +<p> + Lhéo est un <a href="http://lheo.gouv.fr/" target="_blank" rel=" + "> + Langage Harmonisé d'Échange d'informations sur l'Offre de formation. + </a>. L'API Osuny Lhéo met à disposition toute l'offre de formation à ce format. +</p> +<%= link_to 'Accéder à l\'API Lhéo', api_lheo_path, class: 'btn btn-primary' %> diff --git a/app/views/api/layouts/application.html.erb b/app/views/api/layouts/application.html.erb index e7e4b1646..531f1f8a1 100644 --- a/app/views/api/layouts/application.html.erb +++ b/app/views/api/layouts/application.html.erb @@ -6,8 +6,8 @@ <title><%= yield :title %></title> <%= csrf_meta_tags %> <%= csp_meta_tag %> - <%= stylesheet_link_tag 'application', media: 'all' %> - <%= javascript_include_tag 'application' %> + <%= stylesheet_link_tag 'admin', media: 'all' %> + <%= javascript_include_tag 'admin' %> <%= favicon_link_tag 'favicon.png' %> </head> <body class="<%= body_classes %>"> -- GitLab