account page stubbed: link to etsy sign up

This commit is contained in:
2025-12-29 06:06:13 -07:00
parent 61f9afb39c
commit c9100383e4
35 changed files with 1326 additions and 158 deletions
@@ -0,0 +1,20 @@
{{ componentBody "nav_bar" }}
<h1>Account: {{ .PathParams.acctID }}</h1>
{{- $acctID := parseInt64 .PathParams.acctID }}
Email: {{ (.Accounts.GetAccount $acctID).Email }}
{{- $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>