Tweak invite page title and intro
Ref T690
This commit is contained in:
parent
7e9e3cb7eb
commit
f01b439ff5
2 changed files with 4 additions and 10 deletions
|
@ -137,7 +137,7 @@ func handleViewInvite(app *App, w http.ResponseWriter, r *http.Request) error {
|
||||||
InviteID string
|
InviteID string
|
||||||
Expired bool
|
Expired bool
|
||||||
}{
|
}{
|
||||||
UserPage: NewUserPage(app, r, u, "Invite Instructions", nil),
|
UserPage: NewUserPage(app, r, u, "Invite to "+app.cfg.App.SiteName, nil),
|
||||||
InviteID: inviteCode,
|
InviteID: inviteCode,
|
||||||
Expired: expired,
|
Expired: expired,
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,18 +10,12 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="snug content-container">
|
<div class="snug content-container">
|
||||||
<h1>Invite Instructions</h1>
|
<h1>Invite to {{.SiteName}}</h1>
|
||||||
{{ if .Expired }}
|
{{ if .Expired }}
|
||||||
<p style="font-style: italic">This invite link is expired.</p>
|
<p style="font-style: italic">This invite link is expired.</p>
|
||||||
{{ else }}
|
{{ 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>
|
<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
|
<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 />
|
||||||
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 }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue