Skip to content

Commit 4f3f1b9

Browse files
committed
Decoration
1 parent 0126656 commit 4f3f1b9

File tree

1 file changed

+70
-6
lines changed

1 file changed

+70
-6
lines changed

templates/mail/notify/workflow_run.tmpl

Lines changed: 70 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,73 @@
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
55
<meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
66
<title>{{.Subject}}</title>
7+
<style>
8+
body {
9+
background-color: #f5f7fa;
10+
margin: 20px;
11+
}
12+
13+
h2, h3 {
14+
color: #2c3e50;
15+
margin-bottom: 20px;
16+
}
17+
18+
ul {
19+
list-style: none;
20+
padding: 0;
21+
margin: 0 0 30px 0;
22+
}
23+
24+
li {
25+
background-color: #ffffff;
26+
border: 1px solid #ddd;
27+
border-radius: 6px;
28+
padding: 12px 16px;
29+
margin-bottom: 10px;
30+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
31+
transition: box-shadow 0.2s ease;
32+
}
33+
34+
li:hover {
35+
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
36+
}
37+
38+
a {
39+
color: #0073e6;
40+
text-decoration: none;
41+
font-weight: bold;
42+
}
43+
44+
a:hover {
45+
text-decoration: underline;
46+
}
47+
48+
.button-container {
49+
text-align: center;
50+
margin-top: 30px;
51+
}
52+
53+
.button-link {
54+
display: inline-block;
55+
background-color: #28a745;
56+
color: #ffffff !important;
57+
text-decoration: none;
58+
padding: 10px 20px;
59+
border-radius: 5px;
60+
font-weight: bold;
61+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
62+
transition: background-color 0.3s ease;
63+
}
64+
65+
.button-link:hover {
66+
background-color: #218838;
67+
}
68+
</style>
769
</head>
870
<body>
9-
<h4>
71+
<h2>
1072
{{.Repo.FullName}} {{.Run.WorkflowID}}: {{.RunStatusText}}
11-
</h4>
73+
</h2>
1274
<ul>
1375
{{range $job := .Jobs}}
1476
<li>
@@ -18,9 +80,11 @@
1880
</li>
1981
{{end}}
2082
</ul>
21-
<p>
22-
<br>
23-
<a href="{{.Run.HTMLURL}}">{{.locale.Tr "mail.view_it_on" AppName}}</a>.
24-
</p>
83+
<br/>
84+
<div class="button-container">
85+
<a class="button-link" href="{{.Run.HTMLURL}}">
86+
{{.locale.Tr "mail.view_it_on" AppName}}
87+
</a>
88+
</div>
2589
</body>
2690
</html>

0 commit comments

Comments
 (0)