Fix the sign in halt layout

... so it's not dependant on common addon any more.
This commit is contained in:
Luka Murn 2018-06-12 14:47:15 +02:00
parent acd6efae57
commit a66d65fb28

View file

@ -1,6 +1,25 @@
<% # This layout should be used when sign in flow is halted (due to e.g. password expiry, %>
<% # or some similar halt in sign-in chain) %>
<% content_for :content do %>
<!DOCTYPE html>
<html>
<head>
<meta data-hook="head-js">
<title><%=t "head.title", title: (yield :head_title) %></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<style media="all">
html, body { height: 100%; min-height: 100%; }
</style>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= favicon_link_tag "favicon.ico" %>
<%= favicon_link_tag "favicon-16.png", type: "image/png", size: "16x16" %>
<%= favicon_link_tag "favicon-32.png", type: "image/png", size: "32x32" %>
<%= favicon_link_tag "favicon-48.png", type: "image/png", size: "48x48" %>
<%= csrf_meta_tags %>
</head>
<body class="<%= yield :body_class %>">
<nav class="navbar navbar-default navbar-fixed-top navbar-sign-in-halt" id="main-nav">
<div class="container-fluid">
<div class="navbar-header">
@ -27,5 +46,5 @@
<div class="container sign-in-halt-container">
<%= yield %>
</div>
<% end %>
<%= render template: 'scinote/common/layouts/application' %>
</body>
</html>