mirror of https://github.com/writeas/writefreely
A focused writing and publishing space.
https://write.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.5 KiB
33 lines
1.5 KiB
5 years ago
|
{{define "invite-help"}}
|
||
5 years ago
|
{{template "header" .}}
|
||
|
<style>
|
||
|
.copy-link {
|
||
|
width: 100%;
|
||
5 years ago
|
margin: 1rem 0;
|
||
5 years ago
|
text-align: center;
|
||
5 years ago
|
font-size: 1.2em;
|
||
5 years ago
|
color: #555;
|
||
|
}
|
||
|
</style>
|
||
|
<div class="snug content-container">
|
||
5 years ago
|
<h1>Invite to {{.SiteName}}</h1>
|
||
5 years ago
|
{{ if .Expired }}
|
||
|
<p style="font-style: italic">This invite link is expired.</p>
|
||
|
{{ else }}
|
||
5 years ago
|
<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>
|
||
5 years ago
|
<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>
|
||
5 years ago
|
{{ end }}
|
||
5 years ago
|
</div>
|
||
|
|
||
|
{{template "footer" .}}
|
||
|
{{end}}
|