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

20 lines
534 B
Cheetah

{{ componentBody "nav_bar" }}
{{- $acctID := parseInt64 .PathParams.acctID }}
{{- $acct := (.Accounts.GetAccount $acctID) }}
<h1>Account: {{ $acct.Email }} (id: {{ $acctID }})</h1>
{{- $etsyUser := .Etsy.GetUserPointerByAccountID $acctID }}
{{- if $etsyUser }}
<h3>Etsy User: {{ $etsyUser.UserID }}; Shop ID: {{ $etsyUser.ShopID }}</h3>
{{- else }}
<h3>
<a href="{{ .Etsy.GenerateConnectionURLForNewAccount $acctID }}">
Link Your Etsy Store!
</a>
</h3>
{{- end }}
<h2><a href="{{$acctID}}/reports">View Reports</a></h2>