add silenced warning on invites page
This commit is contained in:
parent
bca678aee5
commit
9b69de166f
|
@ -57,11 +57,19 @@ func handleViewUserInvites(app *App, u *User, w http.ResponseWriter, r *http.Req
|
||||||
p := struct {
|
p := struct {
|
||||||
*UserPage
|
*UserPage
|
||||||
Invites *[]Invite
|
Invites *[]Invite
|
||||||
|
Suspended bool
|
||||||
}{
|
}{
|
||||||
UserPage: NewUserPage(app, r, u, "Invite People", f),
|
UserPage: NewUserPage(app, r, u, "Invite People", f),
|
||||||
}
|
}
|
||||||
|
|
||||||
var err error
|
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)
|
p.Invites, err = app.db.GetUserInvites(u.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -31,6 +31,9 @@ table td {
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="snug content-container">
|
<div class="snug content-container">
|
||||||
|
{{if .Suspended}}
|
||||||
|
{{template "user-suspended"}}
|
||||||
|
{{end}}
|
||||||
<h1>Invite people</h1>
|
<h1>Invite people</h1>
|
||||||
<p>Invite others to join <em>{{.SiteName}}</em> by generating and sharing invite links below.</p>
|
<p>Invite others to join <em>{{.SiteName}}</em> by generating and sharing invite links below.</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue