Files
inventory-plus-plus/internal/site/templates/page_bodies/accounts/{acctID}/index.html.tmpl
T
2025-12-30 11:37:29 -07:00

17 lines
545 B
Cheetah

{{- define "title" }} Inventory++ Account {{ end }}
<h1>Account: {{ .Account.Email }}</h1>
{{- $etsyUser := .Etsy.GetUserPointerByAccountID .Account.ID }}
{{- if $etsyUser }}
<h3>Etsy User: {{ $etsyUser.UserID }}; Shop ID: {{ $etsyUser.ShopID }}</h3>
{{- else }}
<h3>
{{/* TODO: create this link dynamically, not EVERYTIME THE PAGE IS LOADED */}}
<a href="{{ .Etsy.GenerateConnectionURLForNewAccount .Account.ID }}">
Link Your Etsy Store!
</a>
</h3>
{{- end }}
<h2><a href="/accounts/{{.Account.ID}}/reports">View Reports</a></h2>