2019-04-10 13:45:47 +02:00
|
|
|
import { Issue } from "./issue";
|
2019-04-09 21:22:33 +02:00
|
|
|
|
2019-04-10 13:45:47 +02:00
|
|
|
export function showIssueHTML(issue: Issue) {
|
2019-04-09 21:22:33 +02:00
|
|
|
|
|
|
|
return `<body>
|
|
|
|
<h1>{{label}}</h1>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
Title
|
|
|
|
</td>
|
|
|
|
<td >
|
|
|
|
{{label}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
State
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{state}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr >
|
|
|
|
<td>
|
|
|
|
Assignee
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{assignee}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2019-04-11 14:19:42 +02:00
|
|
|
<p style="font-size: 20pt">
|
|
|
|
{{description}}
|
|
|
|
</p>
|
2019-04-09 21:22:33 +02:00
|
|
|
</body>
|
|
|
|
`.replace("{{label}}", issue.label).replace("{{state}}", issue.issueState).replace("{{assignee}}", issue.assignee).replace("{{description}}", issue.body).replace("{{label}}", issue.label);
|
|
|
|
}
|