Merge pull request #23516 from overleaf/jdt-institution-buttons-temp

Jdt institution buttons temp

GitOrigin-RevId: 42771f3047088bfa2bd1dfdd89eb990392dd113c
This commit is contained in:
Jimmy Domagala-Tang
2025-02-11 09:25:57 -06:00
committed by Copybot
parent 761c184c8f
commit 22bf2ced21
3 changed files with 15 additions and 12 deletions

View File

@@ -66,14 +66,15 @@ nav.navbar.navbar-default.navbar-main.navbar-expand-lg(class={
+dropdown-menu-link-item()(href="/admin/split-test") Manage Feature Flags
if canDisplaySurveyMenu
+dropdown-menu-link-item()(href="/admin/survey") Manage Surveys
+dropdown-menu-link-item()(href="/admin/institutions") Manage Institutional Policies
// loop over header_extras
each item in nav.header_extras
-
if ((item.only_when_logged_in && getSessionUser())
|| (item.only_when_logged_out && (!getSessionUser()))
|| (!item.only_when_logged_out && !item.only_when_logged_in && !item.only_content_pages)
|| (item.only_content_pages && (typeof suppressNavContentLinks === "undefined" || !suppressNavContentLinks))
|| (item.only_when_logged_out && (!getSessionUser()))
|| (!item.only_when_logged_out && !item.only_when_logged_in && !item.only_content_pages)
|| (item.only_content_pages && (typeof suppressNavContentLinks === "undefined" || !suppressNavContentLinks))
){
var showNavItem = true
} else {
@@ -195,4 +196,4 @@ nav.navbar.navbar-default.navbar-main.navbar-expand-lg(class={
action="/logout",
id="logOutForm"
)
input(name='_csrf', type='hidden', value=csrfToken)
input(name='_csrf' type='hidden', value=csrfToken)

View File

@@ -66,14 +66,15 @@ nav.navbar.navbar-default.navbar-main
if canDisplaySurveyMenu
li
a(href="/admin/survey") Manage Surveys
a(href="/admin/institutions") Manage Institutional Policies
// loop over header_extras
each item in nav.header_extras
-
if ((item.only_when_logged_in && getSessionUser())
|| (item.only_when_logged_out && (!getSessionUser()))
|| (!item.only_when_logged_out && !item.only_when_logged_in && !item.only_content_pages)
|| (item.only_content_pages && (typeof(suppressNavContentLinks) == "undefined" || !suppressNavContentLinks))
|| (item.only_when_logged_out && (!getSessionUser()))
|| (!item.only_when_logged_out && !item.only_when_logged_in && !item.only_content_pages)
|| (item.only_content_pages && (typeof(suppressNavContentLinks) == "undefined" || !suppressNavContentLinks))
){
var showNavItem = true
} else {
@@ -187,5 +188,5 @@ nav.navbar.navbar-default.navbar-main
li.divider.hidden-xs.hidden-sm
li
form(method="POST" action="/logout")
input(name='_csrf', type='hidden', value=csrfToken)
input(name='_csrf' type='hidden', value=csrfToken)
button.btn-link.text-left.dropdown-menu-button #{translate('log_out')}

View File

@@ -66,14 +66,15 @@ nav.navbar.navbar-default.navbar-main.website-redesign-navbar
if canDisplaySurveyMenu
li
a(href="/admin/survey") Manage Surveys
a(href="/admin/institutions") Manage Institutional Policies
// loop over header_extras
each item in nav.header_extras
-
if ((item.only_when_logged_in && getSessionUser())
|| (item.only_when_logged_out && (!getSessionUser()))
|| (!item.only_when_logged_out && !item.only_when_logged_in && !item.only_content_pages)
|| (item.only_content_pages && (typeof(suppressNavContentLinks) == "undefined" || !suppressNavContentLinks))
|| (item.only_when_logged_out && (!getSessionUser()))
|| (!item.only_when_logged_out && !item.only_when_logged_in && !item.only_content_pages)
|| (item.only_content_pages && (typeof(suppressNavContentLinks) == "undefined" || !suppressNavContentLinks))
){
var showNavItem = true
} else {
@@ -187,5 +188,5 @@ nav.navbar.navbar-default.navbar-main.website-redesign-navbar
li.divider.hidden-xs.hidden-sm
li
form(method="POST" action="/logout")
input(name='_csrf', type='hidden', value=csrfToken)
input(name='_csrf' type='hidden', value=csrfToken)
button.btn-link.text-left.dropdown-menu-button #{translate('log_out')}