-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathticketTemplates.php
57 lines (54 loc) · 1.86 KB
/
ticketTemplates.php
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
<?
$baseTemplate =<<<EOF
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans:regular,bold&subset=latin" />
<style>
body {
margin: 0px;
font-family: 'PT Sans', Arial, Helvetica, sans-serif;
font-size: 14px;
}
td {
width: 200px;
font-weight: bold;
border: 1px solid black;
padding: 10px;
}
tr.blank td {
height: 100px;
vertical-align: top;
font-weight: normal;
}
</style>
</head>
<body>
{{ tickets }}
</body>
</html>
EOF;
$ticketTemplate =<<<EOF
<div>
<div style="float: left; padding: 10px; border: 1px solid black; font-size: 36px; font-weight: bold;">{{ Key }}</div>
<div style="float: left; padding-left: 20px;">
<div style="font-size: 24px; padding-bottom: 10px;">{{ Summary }}</div>
<strong>Milestone:</strong> {{ Affects Version/s }}
</div>
</div>
<div style="clear: both; margin-bottom: 20px;"> </div>
<table align="center" style="border-collapse: collapse; border: 1px solid black;">
<tr>
<td>Type</td>
<td>Priority</td>
<td>Est. Hours</td>
<td>QA</td>
</tr>
<tr class="blank">
<td>{{ Issue Type }}</td>
<td>{{ Priority }}</td>
<td></td>
<td></td>
</tr>
</table>
</div>
EOF;