mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 17:22:28 -05:00
24007affa7
this is the page for the admin panel, if the panel is installed then it will load, otherwise a redirect to register users has been added in.
49 lines
1.5 KiB
Text
49 lines
1.5 KiB
Text
nav.navbar.navbar-default
|
|
.container-fluid
|
|
.navbar-header
|
|
button.navbar-toggle(ng-init="navCollapsed = true", ng-click="navCollapsed = !navCollapsed", ng-class="{active: !navCollapsed}")
|
|
i.fa.fa-bars
|
|
if nav.title
|
|
a(href='/').navbar-title #{nav.title}
|
|
else
|
|
a(href='/').navbar-brand
|
|
|
|
.navbar-collapse.collapse(collapse="navCollapsed")
|
|
|
|
ul.nav.navbar-nav.navbar-right
|
|
if (session && session.user && session.user.isAdmin)
|
|
li.dropdown(class="subdued", dropdown)
|
|
a.dropdown-toggle(href, dropdown-toggle)
|
|
| Admin
|
|
b.caret
|
|
ul.dropdown-menu
|
|
li
|
|
a(href="/admin/user") Manage Users
|
|
|
|
each item in nav.header
|
|
if ((item.only_when_logged_in && session && session.user) || (item.only_when_logged_out && (!session || !session.user)) || (!item.only_when_logged_out && !item.only_when_logged_in))
|
|
if item.dropdown
|
|
li.dropdown(class=item.class, dropdown)
|
|
a.dropdown-toggle(href, dropdown-toggle)
|
|
| !{translate(item.text)}
|
|
b.caret
|
|
ul.dropdown-menu
|
|
each child in item.dropdown
|
|
if child.divider
|
|
li.divider
|
|
else
|
|
li
|
|
if child.url
|
|
a(href=child.url, class=child.class) !{translate(child.text)}
|
|
else
|
|
| !{translate(child.text)}
|
|
else
|
|
li(class=item.class)
|
|
if item.url
|
|
a(href=item.url, class=item.class) !{translate(item.text)}
|
|
else
|
|
| !{translate(item.text)}
|
|
|
|
|
|
|
|
|