Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Curriculum-Request
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tim Steiner
Curriculum-Request
Commits
d8761470
Commit
d8761470
authored
15 years ago
by
Tim Steiner
Browse files
Options
Downloads
Patches
Plain Diff
Add an admin menu to the navigation (finally)
parent
0746931e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/modules/default/views/scripts/menu.phtml
+25
-2
25 additions, 2 deletions
application/modules/default/views/scripts/menu.phtml
with
25 additions
and
2 deletions
application/modules/default/views/scripts/menu.phtml
+
25
−
2
View file @
d8761470
<?php
if
(
Zend_Auth
::
getInstance
()
->
getIdentity
())
{
$user
=
Auth_UserModel
::
findCurrentUser
();
$roles
=
Auth_GroupModel
::
findByUser
(
$user
);
}
else
{
$user
=
NULL
;
}
?>
<ul>
<ul>
<?php
if
(
Zend_Auth
::
getInstance
()
->
getIdentity
()
)
{
?>
<?php
if
(
$user
)
{
?>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/requests"
>
My Requests
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/requests"
>
My Requests
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/requests/new"
>
New Request
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/requests/new"
>
New Request
</a></li>
<?php
}
?>
<?php
}
?>
...
@@ -7,7 +16,21 @@
...
@@ -7,7 +16,21 @@
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/courses/public-view/search"
>
Curriculum Search
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/courses/public-view/search"
>
Curriculum Search
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/ucc/reports/monthly"
>
UCC Activity
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/ucc/reports/monthly"
>
UCC Activity
</a></li>
<?php
if
(
Zend_Auth
::
getInstance
()
->
getIdentity
())
{
?>
<?php
if
(
$user
&&
in_array
(
1
,
$roles
->
getId
()))
{
?>
<li>
<a>
Admin
</a>
<ul>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/auth/user-admin"
>
Users
&
Groups
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/requests/approval-body-admin"
>
Approval Bodies
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/requests/approval-chain-manager"
>
Approval Chains
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/requests/queue-manager"
>
Queues
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/requests/withdrawn"
>
Withdrawn Requests
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/requests/notification"
dir=
"dir "
>
Notification List
</a></li>
</ul>
</li>
<?php
}
?>
<?php
if
(
$user
)
{
?>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/auth/index/logout"
>
Log Out
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/auth/index/logout"
>
Log Out
</a></li>
<?php
}
else
{
?>
<?php
}
else
{
?>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/auth/index/login"
>
Log In
</a></li>
<li><a
href=
"
<?php
echo
$this
->
baseUrl
();
?>
/auth/index/login"
>
Log In
</a></li>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment