parent
7e9e3cb7eb
commit
f01b439ff5
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue