Initial commit
This commit is contained in:
31
app/views/layouts/admin/application.html.erb
Normal file
31
app/views/layouts/admin/application.html.erb
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<%= I18n.locale %>">
|
||||
<head>
|
||||
<title>BiGMedia.ai App</title>
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<%= favicon_link_tag %>
|
||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= render "header" %>
|
||||
<main class="container-fluid py-3">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<%= render "side_nav" %>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9 mt-3 mt-md-0">
|
||||
<%= render "application/flash" %>
|
||||
<%= yield %>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
36
app/views/layouts/application.html.erb
Normal file
36
app/views/layouts/application.html.erb
Normal file
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<%= I18n.locale %>">
|
||||
<head>
|
||||
<title>BiGMedia.ai App</title>
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<%= yield :meta %>
|
||||
|
||||
<%= favicon_link_tag %>
|
||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_pack_tag 'application' %>
|
||||
<%= javascript_include_analytics_js %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= content_for?(:header) ? yield(:header) : render("header") %>
|
||||
<%= render "masquerade" if masquerading? %>
|
||||
<main class="container-fluid py-3">
|
||||
<div class="flash-message"></div>
|
||||
<%= render "flash" %>
|
||||
</div>
|
||||
<%= content_for?(:content) ? yield(:content) : yield %>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
<%= identify_user_for_analytics Current.user %>
|
||||
<%= javascript_tag nonce: true do %>
|
||||
if (!navigator.cookieEnabled && window.location.pathname !== "<%= cookies_disabled_path %>") {
|
||||
window.location = "<%= cookies_disabled_path %>";
|
||||
}
|
||||
<% end %>
|
||||
</html>
|
||||
14
app/views/layouts/contract_pdf.html.erb
Normal file
14
app/views/layouts/contract_pdf.html.erb
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="ROBOTS" content="NOODP" />
|
||||
<meta name="viewport" content="initial-scale=1" />
|
||||
<style>
|
||||
<%= Rails.application.assets_manifest.find_sources("contract_pdf.css").first.to_s %>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
||||
13
app/views/layouts/mailer.html.erb
Normal file
13
app/views/layouts/mailer.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style>
|
||||
/* Email styles need to be inline */
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
||||
1
app/views/layouts/mailer.text.erb
Normal file
1
app/views/layouts/mailer.text.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= yield %>
|
||||
16
app/views/layouts/project.html.erb
Normal file
16
app/views/layouts/project.html.erb
Normal file
@@ -0,0 +1,16 @@
|
||||
<%= content_for :meta do %>
|
||||
<meta name="project-id" content="<%= @project.id %>">
|
||||
<% end %>
|
||||
<% content_for :content do %>
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<%= render "sidebar", project: @project %>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9 mt-3 mt-md-0">
|
||||
<%= render "breadcrumbs" %>
|
||||
<%= yield %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= render template: "layouts/application" %>
|
||||
Reference in New Issue
Block a user