Tweak invite page title and intro

Ref T690
This commit is contained in:
Matt Baer 2019-09-23 10:02:36 -04:00
parent 7e9e3cb7eb
commit f01b439ff5
2 changed files with 4 additions and 10 deletions

View File

@ -137,7 +137,7 @@ func handleViewInvite(app *App, w http.ResponseWriter, r *http.Request) error {
InviteID string
Expired bool
}{
UserPage: NewUserPage(app, r, u, "Invite Instructions", nil),
UserPage: NewUserPage(app, r, u, "Invite to "+app.cfg.App.SiteName, nil),
InviteID: inviteCode,
Expired: expired,
}

View File

@ -10,18 +10,12 @@
}
</style>
<div class="snug content-container">
<h1>Invite Instructions</h1>
<h1>Invite to {{.SiteName}}</h1>
{{ if .Expired }}
<p style="font-style: italic">This invite link is expired.</p>
{{ else }}
<p>This is a special link that you can send to anyone you want to join <em>{{ .SiteName }}</em>. Copy the link below and paste it into an email, instant message, or text message and send it to the person you want. When they navigate to the link, they'll be able to create an account.</p>
<input
class="copy-link"
type="text"
name="invite-url"
value="{{$.Host}}/invite/{{.InviteID}}"
onfocus="if (this.select) this.select(); else this.setSelectionRange(0, this.value.length);"
readonly/>
<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>
<input class="copy-link" type="text" name="invite-url" value="{{$.Host}}/invite/{{.InviteID}}" onfocus="if (this.select) this.select(); else this.setSelectionRange(0, this.value.length);" readonly />
{{ end }}
</div>