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

wip #267

parent af16aedc
No related branches found
No related tags found
No related merge requests found
class Api::ApplicationController < ApplicationController
layout false
skip_before_action :authenticate_user!
def index
end
end
class Api::DashboardController < Api::ApplicationController
layout 'api/layouts/application'
def index
end
end
......@@ -7,6 +7,7 @@
<footer class="small my-5">
<hr>
<%= link_to 'API', api_root_path, class: 'sidebar-link' %>
<%
[
:terms_of_service,
......@@ -19,7 +20,9 @@
rel: 'noreferrer',
class: 'sidebar-link' %>
<% end %>
<%= link_to t('cookies_consent_choice'), '', class: 'sidebar-link js-gdpr__cookie_consent__display_again' %>
<%= link_to t('cookies_consent_choice'),
'',
class: 'sidebar-link js-gdpr__cookie_consent__display_again' %>
</footer>
</div>
</nav>
<% 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 %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><%= yield :title %></title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag 'application', media: 'all' %>
<%= javascript_include_tag 'application' %>
<%= favicon_link_tag 'favicon.png' %>
</head>
<body class="<%= body_classes %>">
<nav class="navbar navbar-light">
<div class="container">
<a class="navbar-brand" href="<%= api_root_path %>">
<%= render 'logo' %>
</a>
</div>
</nav>
<main class="container mt-5">
<h1><%= yield :title %></h1>
<%= yield %>
</main>
<%= render 'footer' %>
<%= render 'gdpr/cookie_consent' %>
<%= render 'bugsnag' %>
</body>
</html>
......@@ -3,7 +3,18 @@
<offres>
<% @programs.each do |program| %>
<formation>
<domaine-formation>
<code-FORMACODE>...</code-FORMACODE>
<code-NSF>...</code-NSF>
<code-ROME>...</code-ROME>
<extras>N</extras>
</domaine-formation>
<intitule-formation><![CDATA[<%= program.name %>]]></intitule-formation>
<% if program.schools.any? %>
<nom-organisme><![CDATA[<%= program.schools.first.name %>]]></nom-organisme>
<% end %>
<objectif-formation><![CDATA[<%= program.objectives %>]]></objectif-formation>
<resultats-attendus><![CDATA[<%= program.results %>]]></resultats-attendus>
</formation>
<% end %>
</offres>
......
<footer class="text-center small">
<div class="mb-5">
<%= image_tag 'osuny-black.svg', width: 80 %>
<footer class="pt-5">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="mb-5">
<%= image_tag 'osuny-black.svg', width: 80 %>
</div>
<p>
<%= current_context %><br>
<%= current_context.address %><br>
<%= current_context.zipcode %>
<%= current_context.city %>
</p>
</div>
<div class="col-md-6">
<nav class="nav flex-column text-end">
<%= link_to t('terms_of_service'),
t('terms_of_service_url'),
class: 'nav-link pe-0',
target: '_blank',
rel: 'noreferrer' %>
<%= link_to t('privacy_policy'),
t('privacy_policy_url'),
class: 'nav-link pe-0',
target: '_blank',
rel: 'noreferrer' %>
<%= link_to t('cookies_policy'),
t('cookies_policy_url'),
class: 'nav-link pe-0',
target: '_blank',
rel: 'noreferrer' %>
<%= link_to t('cookies_consent_choice'),
'',
class: 'nav-link pe-0 js-gdpr__cookie_consent__display_again' %>
</nav>
</div>
</div>
</div>
<%= current_university %> |
<%= link_to t('terms_of_service'), t('terms_of_service_url'), target: '_blank', rel: 'noreferrer' %> |
<%= link_to t('privacy_policy'), t('privacy_policy_url'), target: '_blank', rel: 'noreferrer' %> |
<%= link_to t('cookies_policy'), t('cookies_policy_url'), target: '_blank', rel: 'noreferrer' %> |
<%= link_to t('cookies_consent_choice'), '', class: 'js-gdpr__cookie_consent__display_again' %>
</footer>
namespace :api do
get 'lheo' => 'lheo#index', defaults: { format: :xml }
root to: 'application#index'
root to: 'dashboard#index'
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