-
Notifications
You must be signed in to change notification settings - Fork 2
/
schedule.html
118 lines (114 loc) · 3.66 KB
/
schedule.html
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Cron Schedules</title>
<style type="text/css">
body{
margin: 0 auto;
padding: 0;
min-width: 100%;
font-family: sans-serif;
}
table{
margin: 50px 0 50px 0;
}
.header{
height: 40px;
text-align: center;
font-size: 24px;
font-weight: bold;
font-style: italic;
}
.content{
height: 100px;
font-size: 18px;
line-height: 30px;
}
.button{
text-align: center;
font-size: 18px;
font-family: sans-serif;
font-weight: bold;
padding: 0 30px 0 30px;
}
.button a{
color: #FFFFFF;
text-decoration: none;
}
.buttonwrapper{
margin: 0 auto;
}
.footer{
text-transform: uppercase;
text-align: center;
height: 40px;
font-size: 14px;
}
</style>
</head>
<body bgcolor="#3662d1">
<table bgcolor="#FFFFFF" width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr class="header">
<td style="padding: 40px;">
CronJob Schedule in {{ .Namespace }} namespace
</td>
</tr>
<tr class="content">
<td style="padding:10px;">
<p>
Please find the below list <b><i>CronJobs</i></b> and its <b><i>Schedules</i></b> that are available.
</p>
</td>
</tr>
<tr>
<td style="padding: 30px 0 20px 0;" bgcolor="#dad8e6">
<table bgcolor="#e1effc" cellspacing="0" class="buttonwrapper" cellspacing="0" celpadding="0" border=".5">
<tr bgcolor="#3662d1" style="color: white">
<th>S No</th>
<th>Name</th>
<th>Schedules</th>
{{ if eq .Namespace "all" }}
<th>Namespace</th>
{{ end }}
</tr>
{{ $root := . }}
{{range $idx, $ele := .CronJobLists}}
<tr>
<td>
{{ $ele.SNo }}
</td>
<td>
{{ $ele.Name }}
</td>
<td>
<a href="{{ $ele.LinkFormat }}" target="_blank">{{ $ele.Schedule }}</a>
</td>
{{ if eq $root.Namespace "all" }}
<td>
{{ $ele.Namespace }}
</td>
{{ end }}
</tr>
{{ end }}
</table>
</td>
</tr>
<tr>
<td style="padding: 20px 0 0 0;">
<table bgcolor="#009587" border="2" cellspacing="0" cellpadding="0" class="buttonwrapper">
<tr>
<td class="button" height="25" >
<a href="https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/" target="_blank">Go to K8s CronJob Documentation</a>
</td>
<td class="button" height="25">
<a href="https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/" target="_blank">Kubernetes Documentation</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>