Skip to content
Snippets Groups Projects
Unverified Commit d7f7dc9d authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

design (#2034)

parent b05a85d1
No related branches found
No related tags found
No related merge requests found
class Design::ApplicationController < ApplicationController
layout 'design/layouts/application'
skip_before_action :ensure_university, :authenticate_user!
end
class Design::HomeController < Transparency::ApplicationController
def index
end
end
<% content_for :title, 'Système de design Osuny' %>
<h1>Système de design Osuny</h1>
<!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 %> — Osuny</title>
<%= stylesheet_link_tag 'admin', media: 'all' %>
<%= favicon_link_tag 'favicon.png' %>
</head>
<body>
<nav class="navbar navbar-light">
<div class="container justify-content-center">
<a class="navbar-brand" href="/">
<%= image_tag 'osuny-black.svg',
class: 'img-fluid py-4',
alt: 'Osuny',
width: 100 %>
</a>
</div>
</nav>
<main class="container-fluid mt-5 pt-5">
<%= yield %>
</main>
</body>
</html>
......@@ -31,6 +31,7 @@ MICROLINK_API_KEY:
OSUNY_API_AUTOUPDATE_THEME_KEY:
OSUNY_DEVELOPMENT_DBNAME: # Can be used when working on two incompatible branches (e.g. main & i18n)
OSUNY_DESIGN:
OSUNY_STAGING_APP_NAME:
OSUNY_STAGING_PG_ADDON_ID:
OSUNY_SHOWCASE:
......
......@@ -11,6 +11,9 @@ Rails.application.routes.draw do
constraints host: ENV['OSUNY_TRANSPARENCY'] do
get '/' => 'transparency/home#index'
end
constraints host: ENV['OSUNY_DESIGN'] do
get '/' => 'design/home#index'
end
authenticated :user, -> user { user.server_admin? } do
mount GoodJob::Engine => 'background'
......
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