Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Web
Newsletter
Commits
d4d382eb
Commit
d4d382eb
authored
Jan 03, 2019
by
Hiro
🏄
Browse files
Use relative links in navbar
parent
ab7c6904
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/navbar.html
View file @
d4d382eb
...
...
@@ -15,7 +15,7 @@
{% set menubag = 'menu+' + this.alt %}
{% for id, item in bag(menubag).items() %}
<li
{%
if
this.is_child_of
(
item.path
)
%}
class=
"nav-item active"
{%
else
%}
class=
"nav-item"
{%
endif
%}
>
<a
class=
"nav-link"
href=
"{{ item.path }}"
>
{{ item.label }}
<a
class=
"nav-link"
href=
"{{ item.path
|url
}}"
>
{{ item.label }}
{% if this.is_child_of(item.path) %}
<span
class=
"sr-only"
>
(current)
</span>
{% endif %}
...
...
@@ -28,5 +28,3 @@
</div>
</nav>
Write
Preview
Supports
Markdown
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