Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mahara
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mahara
mahara
Commits
f00e77ca
Commit
f00e77ca
authored
May 28, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
May 28, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Bug 1449770 - allowing mainnav menu items to specify wwwroot"
parents
a59d8146
179f3948
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
htdocs/theme/default/templates/header/navigation.tpl
htdocs/theme/default/templates/header/navigation.tpl
+5
-5
htdocs/theme/default/templates/viewmicroheader.tpl
htdocs/theme/default/templates/viewmicroheader.tpl
+1
-1
htdocs/theme/raw/templates/header/navigation.tpl
htdocs/theme/raw/templates/header/navigation.tpl
+5
-5
No files found.
htdocs/theme/default/templates/header/navigation.tpl
View file @
f00e77ca
...
...
@@ -5,19 +5,19 @@
<ul
id=
"
{
if
$DROPDOWNMENU
}
dropdown-nav
{
else
}
nav
{/
if
}
"
>
{
strip
}
{
foreach
from
=
$MAINNAV
item
=
item
}
<li
class=
"
{
if
$item.path
}{
$item.path
}{
else
}
dashboard
{/
if
}{
if
$item.selected
}
selected
{/
if
}{
if
$DROPDOWNMENU
}
dropdown-nav-home
{/
if
}
"
><span><a
href=
"
{
$WWWROOT
}{
$item.url
}
"
{
if
$item.accesskey
}
accesskey=
"
{
$item.accesskey
}
"
{/
if
}
class=
"
{
if
$item.path
}{
$item.path
}{
else
}
dashboard
{/
if
}
"
>
{
if
$item.accessibletitle
&&
!
$DROPDOWNMENU
}
<span
aria-hidden=
"true"
role=
"presentation"
>
{/
if
}{
$item.title
}{
if
$item.accessibletitle
&&
!
$DROPDOWNMENU
}
</span>
<span
class=
"accessible-hidden"
>
(
{
$item.accessibletitle
}
)
</span>
{/
if
}{
if
$DROPDOWNMENU
&&
$item.submenu
}
<span
class=
"accessible-hidden"
>
(
{
str
tag
=
dropdownmenu
}
)
</span>
{/
if
}
</a></span>
<li
class=
"
{
if
$item.path
}{
$item.path
}{
else
}
dashboard
{/
if
}{
if
$item.selected
}
selected
{/
if
}{
if
$DROPDOWNMENU
}
dropdown-nav-home
{/
if
}
"
><span><a
href=
"
{
if
$item.wwwroot
}{
$item.wwwroot
}{
else
}{
$WWWROOT
}{/
if
}{
$item.url
}
"
{
if
$item.accesskey
}
accesskey=
"
{
$item.accesskey
}
"
{/
if
}
class=
"
{
if
$item.path
}{
$item.path
}{
else
}
dashboard
{/
if
}
"
>
{
if
$item.accessibletitle
&&
!
$DROPDOWNMENU
}
<span
aria-hidden=
"true"
role=
"presentation"
>
{/
if
}{
$item.title
}{
if
$item.accessibletitle
&&
!
$DROPDOWNMENU
}
</span>
<span
class=
"accessible-hidden"
>
(
{
$item.accessibletitle
}
)
</span>
{/
if
}{
if
$DROPDOWNMENU
&&
$item.submenu
}
<span
class=
"accessible-hidden"
>
(
{
str
tag
=
dropdownmenu
}
)
</span>
{/
if
}
</a></span>
{
if
$item.submenu
}
<ul
class=
"
{
if
$DROPDOWNMENU
}
dropdown-sub
{/
if
}
rd-subnav"
>
{
strip
}
{
foreach
from
=
$item.submenu
item
=
subitem
}
<li
class=
"
{
if
$subitem.selected
}
selected
{/
if
}{
if
$subitem.submenu
}
has-sub
{/
if
}
"
><span>
<a
href=
"
{
$WWWROOT
}{
$subitem.url
}
"
{
if
$subitem.accesskey
}
accesskey=
"
{
$subitem.accesskey
}
"
{/
if
}
>
{
$subitem.title
}
</a>
<a
href=
"
{
if
$item.wwwroot
}{
$item.wwwroot
}{
else
}{
$WWWROOT
}{/
if
}{
$subitem.url
}
"
{
if
$subitem.accesskey
}
accesskey=
"
{
$subitem.accesskey
}
"
{/
if
}
>
{
$subitem.title
}
</a>
</span>
{
if
$subitem.submenu
}
<ul
class=
"dropdown-tertiary"
>
{
foreach
from
=
$subitem.submenu
item
=
tertiaryitem
}
<li
{
if
$tertiaryitem.selected
}
class=
"selected"
{/
if
}
><span>
<a
href=
"
{
$WWWROOT
}{
$tertiaryitem.url
}
"
{
if
$tertiaryitem.accesskey
}
accesskey=
"
{
$tertiaryitem.accesskey
}
"
{/
if
}
>
{
$tertiaryitem.title
}
</a>
<a
href=
"
{
if
$item.wwwroot
}{
$item.wwwroot
}{
else
}{
$WWWROOT
}{/
if
}{
$tertiaryitem.url
}
"
{
if
$tertiaryitem.accesskey
}
accesskey=
"
{
$tertiaryitem.accesskey
}
"
{/
if
}
>
{
$tertiaryitem.title
}
</a>
</span></li>
{/
foreach
}
</ul>
...
...
@@ -49,7 +49,7 @@
{
if
$SELECTEDSUBNAV
}
<ul>
{
strip
}
{
foreach
from
=
$SELECTEDSUBNAV
item
=
item
}
<li
{
if
$item.selected
}
class=
"selected"
{/
if
}
><span><a
href=
"
{
$WWWROOT
}{
$item.url
}
"
{
if
$item.accesskey
}
accesskey=
"
{
$item.accesskey
}
"
{/
if
}
>
{
$item.title
}
</a></span>
<li
{
if
$item.selected
}
class=
"selected"
{/
if
}
><span><a
href=
"
{
if
$item.wwwroot
}{
$item.wwwroot
}{
else
}{
$WWWROOT
}{/
if
}{
$item.url
}
"
{
if
$item.accesskey
}
accesskey=
"
{
$item.accesskey
}
"
{/
if
}
>
{
$item.title
}
</a></span>
{
if
$item.submenu
&&
$item.selected
}
{
assign
var
=
tertiarymenu
value
=
$item.submenu
}
{/
if
}
...
...
@@ -64,7 +64,7 @@
<ul>
{
strip
}
{
foreach
from
=
$tertiarymenu
item
=
tertiaryitem
}
<li
{
if
$tertiaryitem.selected
}
class=
"selected"
{/
if
}
><span>
<a
href=
"
{
$WWWROOT
}{
$tertiaryitem.url
}
"
{
if
$tertiaryitem.accesskey
}
accesskey=
"
{
$tertiaryitem.accesskey
}
"
{/
if
}
>
{
$tertiaryitem.title
}
</a>
<a
href=
"
{
if
$item.wwwroot
}{
$item.wwwroot
}{
else
}{
$WWWROOT
}{/
if
}{
$tertiaryitem.url
}
"
{
if
$tertiaryitem.accesskey
}
accesskey=
"
{
$tertiaryitem.accesskey
}
"
{/
if
}
>
{
$tertiaryitem.title
}
</a>
</span></li>
{/
foreach
}
{/
strip
}
</ul>
...
...
htdocs/theme/default/templates/viewmicroheader.tpl
View file @
f00e77ca
...
...
@@ -25,7 +25,7 @@
<strong><a
href=
"
{
profile_url
(
$USER
)
}
"
>
{
$USER
|
display_name
:
null
:
true
}
</a>
:
</strong>
{
foreach
from
=
$MAINNAV
item
=
item
}
{
if
$item.path
}
<a
href=
"
{
$WWWROOT
}{
$item.url
}
"
>
{
$item.title
}
</a>
|
<a
href=
"
{
if
$item.wwwroot
}{
$item.wwwroot
}{
else
}{
$WWWROOT
}{/
if
}{
$item.url
}
"
>
{
$item.title
}
</a>
|
{/
if
}
{/
foreach
}
{
if
$USER
->
get
(
'admin'
)
}
...
...
htdocs/theme/raw/templates/header/navigation.tpl
View file @
f00e77ca
...
...
@@ -5,19 +5,19 @@
<ul
id=
"
{
if
$DROPDOWNMENU
}
dropdown-nav
{
else
}
nav
{/
if
}
"
>
{
strip
}
{
foreach
from
=
$MAINNAV
item
=
item
}
<li
class=
"
{
if
$item.path
}{
$item.path
}{
else
}
dashboard
{/
if
}{
if
$item.selected
}
selected
{/
if
}{
if
$DROPDOWNMENU
}
dropdown-nav-home
{/
if
}
"
><span><a
href=
"
{
$WWWROOT
}{
$item.url
}
"
{
if
$item.accesskey
}
accesskey=
"
{
$item.accesskey
}
"
{/
if
}
class=
"
{
if
$item.path
}{
$item.path
}{
else
}
dashboard
{/
if
}
"
>
{
if
$item.accessibletitle
&&
!
$DROPDOWNMENU
}
<span
aria-hidden=
"true"
role=
"presentation"
>
{/
if
}{
$item.title
}{
if
$item.accessibletitle
&&
!
$DROPDOWNMENU
}
</span>
<span
class=
"accessible-hidden"
>
(
{
$item.accessibletitle
}
)
</span>
{/
if
}{
if
$DROPDOWNMENU
&&
$item.submenu
}
<span
class=
"accessible-hidden"
>
(
{
str
tag
=
dropdownmenu
}
)
</span>
{/
if
}
</a></span>
<li
class=
"
{
if
$item.path
}{
$item.path
}{
else
}
dashboard
{/
if
}{
if
$item.selected
}
selected
{/
if
}{
if
$DROPDOWNMENU
}
dropdown-nav-home
{/
if
}
"
><span><a
href=
"
{
if
$item.wwwroot
}{
$item.wwwroot
}{
else
}{
$WWWROOT
}{/
if
}{
$item.url
}
"
{
if
$item.accesskey
}
accesskey=
"
{
$item.accesskey
}
"
{/
if
}
class=
"
{
if
$item.path
}{
$item.path
}{
else
}
dashboard
{/
if
}
"
>
{
if
$item.accessibletitle
&&
!
$DROPDOWNMENU
}
<span
aria-hidden=
"true"
role=
"presentation"
>
{/
if
}{
$item.title
}{
if
$item.accessibletitle
&&
!
$DROPDOWNMENU
}
</span>
<span
class=
"accessible-hidden"
>
(
{
$item.accessibletitle
}
)
</span>
{/
if
}{
if
$DROPDOWNMENU
&&
$item.submenu
}
<span
class=
"accessible-hidden"
>
(
{
str
tag
=
dropdownmenu
}
)
</span>
{/
if
}
</a></span>
{
if
$DROPDOWNMENU
}{
if
$item.submenu
}
<ul
class=
"dropdown-sub"
>
{
strip
}
{
foreach
from
=
$item.submenu
item
=
subitem
}
<li
class=
"
{
if
$subitem.selected
}
selected
{/
if
}{
if
$subitem.submenu
}
has-sub
{/
if
}
"
><span>
<a
href=
"
{
$WWWROOT
}{
$subitem.url
}
"
{
if
$subitem.accesskey
}
accesskey=
"
{
$subitem.accesskey
}
"
{/
if
}
>
{
$subitem.title
}
</a>
<a
href=
"
{
if
$item.wwwroot
}{
$item.wwwroot
}{
else
}{
$WWWROOT
}{/
if
}{
$subitem.url
}
"
{
if
$subitem.accesskey
}
accesskey=
"
{
$subitem.accesskey
}
"
{/
if
}
>
{
$subitem.title
}
</a>
</span>
{
if
$subitem.submenu
}
<ul
class=
"dropdown-tertiary"
>
{
foreach
from
=
$subitem.submenu
item
=
tertiaryitem
}
<li
{
if
$tertiaryitem.selected
}
class=
"selected"
{/
if
}
><span>
<a
href=
"
{
$WWWROOT
}{
$tertiaryitem.url
}
"
{
if
$tertiaryitem.accesskey
}
accesskey=
"
{
$tertiaryitem.accesskey
}
"
{/
if
}
>
{
$tertiaryitem.title
}
</a>
<a
href=
"
{
if
$item.wwwroot
}{
$item.wwwroot
}{
else
}{
$WWWROOT
}{/
if
}{
$tertiaryitem.url
}
"
{
if
$tertiaryitem.accesskey
}
accesskey=
"
{
$tertiaryitem.accesskey
}
"
{/
if
}
>
{
$tertiaryitem.title
}
</a>
</span></li>
{/
foreach
}
</ul>
...
...
@@ -51,7 +51,7 @@
<ul>
{
strip
}
{
foreach
from
=
$SELECTEDSUBNAV
item
=
item
}
<li
{
if
$item.selected
}
class=
"selected"
{/
if
}
><span><a
href=
"
{
$WWWROOT
}{
$item.url
}
"
{
if
$item.accesskey
}
accesskey=
"
{
$item.accesskey
}
"
{/
if
}
>
{
$item.title
}
</a></span></li>
<li
{
if
$item.selected
}
class=
"selected"
{/
if
}
><span><a
href=
"
{
if
$item.wwwroot
}{
$item.wwwroot
}{
else
}{
$WWWROOT
}{/
if
}{
$item.url
}
"
{
if
$item.accesskey
}
accesskey=
"
{
$item.accesskey
}
"
{/
if
}
>
{
$item.title
}
</a></span></li>
{
if
$item.submenu
&&
$item.selected
}
{
assign
var
=
tertiarymenu
value
=
$item.submenu
}
{/
if
}
...
...
@@ -65,7 +65,7 @@
<ul>
{
strip
}
{
foreach
from
=
$tertiarymenu
item
=
tertiaryitem
}
<li
{
if
$tertiaryitem.selected
}
class=
"selected"
{/
if
}
><span>
<a
href=
"
{
$WWWROOT
}{
$tertiaryitem.url
}
"
{
if
$tertiaryitem.accesskey
}
accesskey=
"
{
$tertiaryitem.accesskey
}
"
{/
if
}
>
{
$tertiaryitem.title
}
</a>
<a
href=
"
{
if
$item.wwwroot
}{
$item.wwwroot
}{
else
}{
$WWWROOT
}{/
if
}{
$tertiaryitem.url
}
"
{
if
$tertiaryitem.accesskey
}
accesskey=
"
{
$tertiaryitem.accesskey
}
"
{/
if
}
>
{
$tertiaryitem.title
}
</a>
</span></li>
{/
foreach
}
{/
strip
}
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment