Parcourir la source

Tweak invite page title and intro

Ref T690
pull/183/head
Matt Baer il y a 4 ans
Parent
révision
f01b439ff5
2 fichiers modifiés avec 4 ajouts et 10 suppressions
  1. +1
    -1
      invites.go
  2. +3
    -9
      templates/user/invite-instructions.tmpl

+ 1
- 1
invites.go Voir le fichier

@@ -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,
}


+ 3
- 9
templates/user/invite-instructions.tmpl Voir le fichier

@@ -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>



Chargement…
Annuler
Enregistrer