add silenced warning on invites page

pull/208/head
Rob Loranger 5 years ago
parent bca678aee5
commit 9b69de166f
No known key found for this signature in database
GPG Key ID: D6F1633A4F0903B8
  1. 10
      invites.go
  2. 3
      templates/user/invite.tmpl

@ -56,12 +56,20 @@ func handleViewUserInvites(app *App, u *User, w http.ResponseWriter, r *http.Req
p := struct {
*UserPage
Invites *[]Invite
Invites *[]Invite
Suspended bool
}{
UserPage: NewUserPage(app, r, u, "Invite People", f),
}
var err error
p.Suspended, err = app.db.IsUserSuspended(u.ID)
if err != nil {
log.Error("view invites: %v", err)
return ErrInternalGeneral
}
p.Invites, err = app.db.GetUserInvites(u.ID)
if err != nil {
return err

@ -31,6 +31,9 @@ table td {
</style>
<div class="snug content-container">
{{if .Suspended}}
{{template "user-suspended"}}
{{end}}
<h1>Invite people</h1>
<p>Invite others to join <em>{{.SiteName}}</em> by generating and sharing invite links below.</p>

Loading…
Cancel
Save