diff --git a/pages/signup.tmpl b/pages/signup.tmpl index b0b9ffe..bc7f0f8 100644 --- a/pages/signup.tmpl +++ b/pages/signup.tmpl @@ -1,180 +1,180 @@ {{define "head"}} Sign up — {{.SiteName}} {{end}} {{define "content"}}

Sign up

{{ if .Error }}

{{.Error}}

{{ else }} {{if .Flashes}}
    {{range .Flashes}}
  • {{.}}
  • {{end}}
{{end}}
{{template "oauth-buttons" .}} {{if not .DisablePasswordAuth}}
{{end}}
{{ end }}
{{end}} diff --git a/templates/user/invite-help.tmpl b/templates/user/invite-help.tmpl index 978cfad..58af3d0 100644 --- a/templates/user/invite-help.tmpl +++ b/templates/user/invite-help.tmpl @@ -1,32 +1,32 @@ {{define "invite-help"}} {{template "header" .}}

Invite to {{.SiteName}}

{{ if .Expired }}

This invite link is expired.

{{ else }}

Copy the link below and send it to anyone that you want to join {{ .SiteName }}. You could paste it into an email, instant message, text message, or write it down on paper. Anyone who navigates to this special page will be able to create an account.

- +

{{ if gt .Invite.MaxUses.Int64 0 }} {{if eq .Invite.MaxUses.Int64 1}}Only one user{{else}}Up to {{.Invite.MaxUses.Int64}} users{{end}} can sign up with this link. {{if gt .Invite.Uses 0}}So far, {{.Invite.Uses}} {{pluralize "person has" "people have" .Invite.Uses}} used it.{{end}} {{if .Invite.Expires}}It expires on {{.Invite.ExpiresFriendly}}.{{end}} {{ else }} It can be used as many times as you like{{if .Invite.Expires}} before {{.Invite.ExpiresFriendly}}, when it expires{{end}}. {{ end }}

{{ end }}
{{template "footer" .}} {{end}} diff --git a/templates/user/invite.tmpl b/templates/user/invite.tmpl index 9e64532..0b204de 100644 --- a/templates/user/invite.tmpl +++ b/templates/user/invite.tmpl @@ -1,84 +1,84 @@ {{define "invite"}} {{template "header" .}}
{{if .Silenced}} {{template "user-silenced"}} {{end}}

Invite people

Invite others to join {{.SiteName}} by generating and sharing invite links below.

{{range .Invites}} - + {{else}} {{end}}
Link Uses Expires
{{$.Host}}/invite/{{.ID}}{{$.Host}}{{subdir}}/invite/{{.ID}} {{.Uses}}{{if gt .MaxUses.Int64 0}} / {{.MaxUses.Int64}}{{end}} {{ if .Expires }}{{if .Expired}}Expired{{else}}{{.ExpiresFriendly}}{{end}}{{ else }}∞{{ end }}
No invites generated yet.
{{template "footer" .}} {{end}}