Added admin approval queue to user dropdown for admins
This commit is contained in:
parent
27deef56af
commit
4be6e89298
|
@ -65,6 +65,9 @@
|
|||
<div class="submenu right-0" id="profile-submenu">
|
||||
<a href="{{ .Header.UserProfileUrl }}">Profile</a>
|
||||
<a href="{{ .Header.UserSettingsUrl }}">Settings</a>
|
||||
{{ if .User.IsStaff }}
|
||||
<a href="{{ .Header.AdminApprovalQueueUrl }}">User approvals</a>
|
||||
{{ end }}
|
||||
<a href="{{ .Header.LogoutUrl }}">Log Out</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -40,12 +40,12 @@ func (bd *BaseData) AddImmediateNotice(class, content string) {
|
|||
}
|
||||
|
||||
type Header struct {
|
||||
AdminUrl string
|
||||
UserProfileUrl string
|
||||
UserSettingsUrl string
|
||||
LogoutUrl string
|
||||
ForgotPasswordUrl string
|
||||
RegisterUrl string
|
||||
AdminApprovalQueueUrl string
|
||||
UserProfileUrl string
|
||||
UserSettingsUrl string
|
||||
LogoutUrl string
|
||||
ForgotPasswordUrl string
|
||||
RegisterUrl string
|
||||
|
||||
HMNHomepageUrl string
|
||||
ProjectIndexUrl string
|
||||
|
|
|
@ -81,11 +81,11 @@ func getBaseData(c *RequestContext, title string, breadcrumbs []templates.Breadc
|
|||
|
||||
IsProjectPage: !project.IsHMN(),
|
||||
Header: templates.Header{
|
||||
AdminUrl: hmnurl.BuildAdminApprovalQueue(), // TODO(asaf): Replace with general-purpose admin page
|
||||
UserSettingsUrl: hmnurl.BuildUserSettings(""),
|
||||
LogoutUrl: hmnurl.BuildLogoutAction(c.FullUrl()),
|
||||
ForgotPasswordUrl: hmnurl.BuildRequestPasswordReset(),
|
||||
RegisterUrl: hmnurl.BuildRegister(""),
|
||||
AdminApprovalQueueUrl: hmnurl.BuildAdminApprovalQueue(), // TODO(asaf): Replace with general-purpose admin page
|
||||
UserSettingsUrl: hmnurl.BuildUserSettings(""),
|
||||
LogoutUrl: hmnurl.BuildLogoutAction(c.FullUrl()),
|
||||
ForgotPasswordUrl: hmnurl.BuildRequestPasswordReset(),
|
||||
RegisterUrl: hmnurl.BuildRegister(""),
|
||||
|
||||
HMNHomepageUrl: hmnurl.BuildHomepage(),
|
||||
ProjectIndexUrl: hmnurl.BuildProjectIndex(),
|
||||
|
|
Loading…
Reference in New Issue