{{Extend "layout"}} {{Block "title"}}{{"管理中心首页"|T}}{{/Block}} {{Block "main"}}
{{- $cardSize := len Stored.cards -}} {{- range $k,$card := Stored.cards -}} {{- if and $card (not ($card.IsHidden Context)) -}}

{{$card.Short}}

{{$card.Name}}

{{$card.Content}}

{{- end -}} {{- end -}}
{{- range $k,$block := Stored.blocks -}} {{- if and $block (not ($block.IsHidden Context)) -}} {{- if $block.Tmpl}}{{Fetch $block.Tmpl $}}{{end -}} {{- end -}} {{- end -}}

{{"欢迎回来"|}}

  • {{"欢迎使用"|T}} {{Version}}
  • BUILD: {{BuildTime}}
  • COMMIT: {{CommitID}}
  • {{"现在是"|T}} {{Now.Format "2006-01-02 15:04"}} {{Now.Weekday}}
{{- if Stored.license.Key -}}

{{"授权信息"|T}}

{{"授权用户"|T}}: {{Stored.license.Info.Name}}
{{- if Stored.license.Info.LicenseID -}} {{"证书编号"|T}}: {{Stored.license.Info.LicenseID}}
{{- end -}} {{- if Stored.license.Info.Domain -}} {{"授权域名"|T}}: {{Stored.license.Info.Domain}}
{{- else -}} {{"机器编号"|T}}: {{Stored.license.Info.MachineID}}
{{- end -}} {{- if Stored.license.Info.Expiration.IsZero -}} {{"过期时间"|T}}: {{"永久有效"|T}} {{- else -}} {{- $remaining := Stored.license.Info.Remaining Lang.String -}} {{- $showExpirationTime := Stored.showExpirationTime -}} {{- if and (ge $showExpirationTime 0) (or (eq $showExpirationTime 0) (lt $remaining.Duration.Seconds (Float64 $showExpirationTime))) -}} {{"过期时间"|T}}: {{- Stored.license.Info.Expiration.Format "2006-01-02" -}} {{- $remainingString := $remaining.String -}}   {{- if HasPrefix $remainingString "-" -}} ({{"已过期"|T}} {{TrimPrefix $remainingString "-"}}) {{- else -}} ({{"还剩"|T}} {{$remainingString}}) {{- end -}} {{"续期"|T}} {{- end -}} {{- end -}}

{{- end -}}
{{/Block}} {{Block "footer"}} {{- range $k,$block := Stored.blocks -}} {{- if and $block (not ($block.IsHidden Context)) -}} {{- if $block.Footer}}{{Fetch $block.Footer $}}{{end -}} {{- end -}} {{- end -}} {{/Block}}