mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
init project
This commit is contained in:
42
app/views/layouts/admin.html.erb
Normal file
42
app/views/layouts/admin.html.erb
Normal file
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>EduCoder后台管理</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' />
|
||||
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
<%= stylesheet_link_tag 'admin', media: 'all','data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_include_tag 'admin', 'data-turbolinks-track': 'reload' %>
|
||||
</head>
|
||||
|
||||
<% body_class = [params[:controller].gsub(/\//, '-').gsub('_', '-'), params[:action], 'page'].join('-') %>
|
||||
<body class="<%= body_class %>">
|
||||
<!-- Sidebar -->
|
||||
<%= render partial: 'admins/shared/sidebar' %>
|
||||
|
||||
<!-- Page Content -->
|
||||
<div class="admin-body-container">
|
||||
<div class="admin-alert-container">
|
||||
<%= render 'shared/flash_notice' %>
|
||||
</div>
|
||||
|
||||
<div class="breadcrumb-container">
|
||||
<%= yield :setup_admin_breadcrumb %>
|
||||
<%= render(partial: 'shared/breadcrumb') %>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<%= yield %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="admin-modal-container"></div>
|
||||
|
||||
<!-- message modal -->
|
||||
<%= render 'admins/shared/modal/message_modal' %>
|
||||
</body>
|
||||
</html>
|
||||
24
app/views/layouts/college.html.erb
Normal file
24
app/views/layouts/college.html.erb
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>EduCoder</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' />
|
||||
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
<%= stylesheet_link_tag 'college', media: 'all','data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_include_tag 'college', 'data-turbolinks-track': 'reload' %>
|
||||
</head>
|
||||
|
||||
<% body_class = [params[:controller].gsub(/\//, '-').gsub('_', '-'), params[:action].gsub(/\//, '-').gsub('_', '-'), 'page'].join('-') %>
|
||||
<body class="<%= body_class %>">
|
||||
<%= render 'colleges/shared/navbar' %>
|
||||
<!-- Page Content -->
|
||||
<div class="college-body-container">
|
||||
<%= yield %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
42
app/views/layouts/cooperative.html.erb
Normal file
42
app/views/layouts/cooperative.html.erb
Normal file
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= current_laboratory.laboratory_setting&.name || 'EduCoder' %>-后台管理</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel='shortcut icon' type='image/x-icon' href='<%= current_setting_or_default(:tab_logo_url) %>' />
|
||||
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
<%= stylesheet_link_tag 'cooperative', media: 'all','data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_include_tag 'cooperative', 'data-turbolinks-track': 'reload' %>
|
||||
</head>
|
||||
|
||||
<% body_class = [params[:controller].gsub(/\//, '-').gsub('_', '-'), params[:action], 'page'].join('-') %>
|
||||
<body class="<%= body_class %>">
|
||||
<!-- Sidebar -->
|
||||
<%= render partial: 'cooperative/shared/sidebar' %>
|
||||
|
||||
<!-- Page Content -->
|
||||
<div class="cooperative-body-container">
|
||||
<div class="cooperative-alert-container">
|
||||
<%= render 'shared/flash_notice' %>
|
||||
</div>
|
||||
|
||||
<div class="cooperative-breadcrumb-container">
|
||||
<%= yield :setup_breadcrumb %>
|
||||
<%= render(partial: 'shared/breadcrumb') %>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<%= yield %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cooperative-modal-container"></div>
|
||||
|
||||
<!-- message modal -->
|
||||
<%= render 'cooperative/shared/modal/message_modal' %>
|
||||
</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 %>
|
||||
Reference in New Issue
Block a user