Files
core/internal/api/ui_tickets.tmpl

45 lines
1.1 KiB
Cheetah

{{define "tickets"}}
<!DOCTYPE html>
<html lang="en">
{{template "head" .}}
<body>
{{template "topbar" .}}
{{template "breadcrumbs" .}}
<main class="container">
<section class="card">
<h2>Synced Tickets</h2>
{{if .Tickets}}
<table class="table">
<thead>
<tr>
<th>Source</th>
<th>External</th>
<th>Title</th>
<th>Status</th>
<th>Opened</th>
<th>Updated</th>
</tr>
</thead>
<tbody>
{{range .Tickets}}
<tr>
<td>{{.Source}}</td>
<td>{{.ExternalID}}</td>
<td>{{.Title}}</td>
<td><span class="badge {{ticketStatusClass .Status}}">{{.Status}}</span></td>
<td title="{{formatTimePtrFull .OpenedAt}}">{{formatTimePtr .OpenedAt}}</td>
<td title="{{formatTimeFull .UpdatedAt}}">{{formatTime .UpdatedAt}}</td>
</tr>
{{end}}
</tbody>
</table>
{{else}}
<div class="meta">No tickets synced yet.</div>
{{end}}
</section>
</main>
</body>
</html>
{{end}}