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">
|
<div class="submenu right-0" id="profile-submenu">
|
||||||
<a href="{{ .Header.UserProfileUrl }}">Profile</a>
|
<a href="{{ .Header.UserProfileUrl }}">Profile</a>
|
||||||
<a href="{{ .Header.UserSettingsUrl }}">Settings</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>
|
<a href="{{ .Header.LogoutUrl }}">Log Out</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -40,7 +40,7 @@ func (bd *BaseData) AddImmediateNotice(class, content string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Header struct {
|
type Header struct {
|
||||||
AdminUrl string
|
AdminApprovalQueueUrl string
|
||||||
UserProfileUrl string
|
UserProfileUrl string
|
||||||
UserSettingsUrl string
|
UserSettingsUrl string
|
||||||
LogoutUrl string
|
LogoutUrl string
|
||||||
|
|
|
@ -81,7 +81,7 @@ func getBaseData(c *RequestContext, title string, breadcrumbs []templates.Breadc
|
||||||
|
|
||||||
IsProjectPage: !project.IsHMN(),
|
IsProjectPage: !project.IsHMN(),
|
||||||
Header: templates.Header{
|
Header: templates.Header{
|
||||||
AdminUrl: hmnurl.BuildAdminApprovalQueue(), // TODO(asaf): Replace with general-purpose admin page
|
AdminApprovalQueueUrl: hmnurl.BuildAdminApprovalQueue(), // TODO(asaf): Replace with general-purpose admin page
|
||||||
UserSettingsUrl: hmnurl.BuildUserSettings(""),
|
UserSettingsUrl: hmnurl.BuildUserSettings(""),
|
||||||
LogoutUrl: hmnurl.BuildLogoutAction(c.FullUrl()),
|
LogoutUrl: hmnurl.BuildLogoutAction(c.FullUrl()),
|
||||||
ForgotPasswordUrl: hmnurl.BuildRequestPasswordReset(),
|
ForgotPasswordUrl: hmnurl.BuildRequestPasswordReset(),
|
||||||
|
|
Loading…
Reference in New Issue