Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hackit15
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
void
hackit15
Commits
d202c026
Commit
d202c026
authored
9 years ago
by
boyska
Browse files
Options
Downloads
Patches
Plain Diff
Localized menu, finally
parent
102fde39
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
themes/bs3/templates/base.html
+6
-8
6 additions, 8 deletions
themes/bs3/templates/base.html
with
6 additions
and
8 deletions
themes/bs3/templates/base.html
+
6
−
8
View file @
d202c026
...
...
@@ -211,16 +211,14 @@
</div>
<div
class=
"collapse navbar-collapse navbar-ex1-collapse"
>
<ul
class=
"nav navbar-nav"
>
{% for title, link in MENUITEMS %}
{% if page %}
{% set menu = LOCALMENUITEMS[page.lang] %}
{% else %}
{% set menu = MENUITEMS %}
{% endif %}
{% for title, link in menu %}
<li><a
href=
"{{ link }}"
>
{{ title }}
</a></li>
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU %}
{% for p in PAGES %}
<li
{%
if
p =
=
page
%}
class=
"active"
{%
endif
%}
><a
href=
"{{ SITEURL }}/{{ p.url }}"
>
{{ p.menulabel|default(p.title) }}
</a></li>
{% endfor %}
{% endif %}
{% if DISPLAY_CATEGORIES_ON_MENU %}
{% for cat, null in categories %}
<li
{%
if
cat =
=
category
%}
class=
"active"
{%
endif
%}
>
...
...
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