add silenced warning on invites page
This commit is contained in:
parent
bca678aee5
commit
9b69de166f
10
invites.go
10
invites.go
|
@ -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…
Reference in New Issue