2019-09-23 16:31:38 +02:00
{{define "invite-help"}}
2019-09-13 19:58:17 +02:00
{{template "header" .}}
<style>
.copy-link {
width: 100%;
2019-09-23 16:21:03 +02:00
margin: 1rem 0;
2019-09-13 19:58:17 +02:00
text-align: center;
2019-09-23 16:21:03 +02:00
font-size: 1.2em;
2019-09-13 19:58:17 +02:00
color: #555;
}
</style>
<div class="snug content-container">
2019-09-23 16:02:36 +02:00
<h1>Invite to {{.SiteName}}</h1>
2019-09-23 15:45:36 +02:00
{{ if .Expired }}
<p style="font-style: italic">This invite link is expired.</p>
{{ else }}
2019-09-23 16:02:36 +02:00
<p>Copy the link below and send it to anyone that you want to join <em>{{ .SiteName }}</em>. 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.</p>
2019-09-23 16:04:45 +02:00
<input class="copy-link" type="text" name="invite-url" value="{{$.Host}}/invite/{{.Invite.ID}}" onfocus="if (this.select) this.select(); else this.setSelectionRange(0, this.value.length);" readonly />
<p>
{{ if gt .Invite.MaxUses.Int64 0 }}
{{if eq .Invite.MaxUses.Int64 1}}Only <strong>one</strong> user{{else}}Up to <strong>{{.Invite.MaxUses.Int64}}</strong> users{{end}} can sign up with this link.
{{if gt .Invite.Uses 0}}So far, <strong>{{.Invite.Uses}}</strong> {{pluralize "person has" "people have" .Invite.Uses}} used it.{{end}}
{{if .Invite.Expires}}It expires on <strong>{{.Invite.ExpiresFriendly}}</strong>.{{end}}
{{ else }}
It can be used as many times as you like{{if .Invite.Expires}} before <strong>{{.Invite.ExpiresFriendly}}</strong>, when it expires{{end}}.
{{ end }}
</p>
2019-09-23 15:45:36 +02:00
{{ end }}
2019-09-13 19:58:17 +02:00
</div>
{{template "footer" .}}
{{end}}