Files
core/internal/api/ui_tickets.tmpl
Michael Chus 5f96ff2273 Add UI improvements: date formatting, breadcrumbs, clickable rows, and structured menu
- Format dates as YYYY-MM-DD with full timestamp on hover
- Add breadcrumb navigation with hospital icon (🏥) across all pages
- Restructure main menu with grouped dropdowns:
  * Hardware (Assets, Components)
  * Health (Tickets, Failures, Analytics)
  * Settings (Ingest)
- Make table rows clickable on Dashboard, Assets, and Components pages
- Add new Customers page with list view
- Improve dropdown menu stability with JS hover delay

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 08:46:07 +03:00

47 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>ID</th>
<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>{{.ID}}</td>
<td>{{.Source}}</td>
<td>{{.ExternalID}}</td>
<td>{{.Title}}</td>
<td><span class="badge">{{.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}}