-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayout.ejs
75 lines (45 loc) · 1.58 KB
/
layout.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="../../css/layout.css"> -->
<link rel="stylesheet" href="<%= assetPath('css/layout.css') %>">
<link rel="stylesheet" href="<%= assetPath('css/header.css') %>">
<link rel="stylesheet" href="<%= assetPath('css/footer.css') %>">
<%- style %>
<title>
<%= title %>
</title>
</head>
<body>
<div >
<%- include('_header'); %>
<%- body %>
<%- include('_footer'); %>
</div>
<%- script %>
<script>
<% if (flash.success && flash.success.length>0){ %>
new Noty({
theme:'relax',
text: "<%= flash.success %>",
type:'success',
layout:'topRight',
timeout:1500
}).show();
<% } %>
<% if (flash.error && flash.error.length>0){ %>
new Noty({
theme:'relax',
text: "<%= flash.error %>",
type:'error',
layout:'topRight',
timeout:1500
}).show();
<% } %>
</script>
</body>
</html>