Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BudgetMaster
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
PlayWallDesktop wird heute 10 Jahre alt!
Show more breadcrumbs
Robert Goldmann
BudgetMaster
Commits
786b08dd
Commit
786b08dd
authored
Mar 10, 2018
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
Fixed selection of navbar sub list items
parent
dfda287c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/resources/static/css/main.css
+14
-3
14 additions, 3 deletions
src/main/resources/static/css/main.css
src/main/resources/templates/navbar.ftl
+3
-5
3 additions, 5 deletions
src/main/resources/templates/navbar.ftl
with
17 additions
and
8 deletions
src/main/resources/static/css/main.css
+
14
−
3
View file @
786b08dd
...
...
@@ -14,6 +14,17 @@
background-color
:
rgba
(
0
,
0
,
0
,
0.15
);
}
/*active nav bar sub list items*/
.side-nav
.collapsible-body
>
ul
:not
(
.collapsible
)
>
li
.active
,
.side-nav.fixed
.collapsible-body
>
ul
:not
(
.collapsible
)
>
li
.active
{
background-color
:
rgba
(
0
,
0
,
0
,
0.25
);
}
/*text color for active nav bar sub list items*/
.side-nav
.collapsible-body
>
ul
:not
(
.collapsible
)
>
li
.active
a
,
.side-nav.fixed
.collapsible-body
>
ul
:not
(
.collapsible
)
>
li
.active
a
{
color
:
rgba
(
0
,
0
,
0
,
0.87
);
}
.btn
{
text-transform
:
capitalize
;
}
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/templates/navbar.ftl
+
3
−
5
View file @
786b08dd
<#
macro
navbar activeID>
<#assign locale = localization["tools.Localization"]>
<ul id="slide-out" class="side-nav fixed">
<!-- TODO: deselect everything when selecting a sublist-->
<@itemLogo/>
<@itemDivider/>
<@itemWithIcon "home", "/", locale.getString("menu.home"), "home", activeID/>
<@itemWithIcon "payments", "", locale.getString("menu.payments"), "list", activeID/>
<@subListStart locale.getString("menu.charts"), "show_chart"/>
<@subListStart
"chart"
locale.getString("menu.charts"), "show_chart"
activeID
/>
<@itemPlain "chartCategories", "", locale.getString("menu.charts.chartCategories"), activeID/>
<@itemPlain "chartMonth", "", locale.getString("menu.charts.chartMonth"), activeID/>
<@itemPlain "chartTags", "", locale.getString("menu.charts.chartTags"), activeID/>
...
...
@@ -45,11 +43,11 @@
<li <#if activeID == ID>class="active"</#if>><a href="$
{
link
}
" class="waves-effect"><i class="material-icons">$
{
icon
}
</i>$
{
text
}
</a></li>
</#
macro
>
<#
macro
subListStart text icon>
<#
macro
subListStart
ID
text icon
activeID
>
<
li
>
<ul class="collapsible collapsible-accordion no-padding">
<li>
<a class="collapsible-header nav-padding"><i class="material-icons">$
{
icon
}
</i>$
{
text
}
</a>
<a class="collapsible-header nav-padding
<#if activeID?starts_with(ID)> active</#if>
"><i class="material-icons">$
{
icon
}
</i>$
{
text
}
</a>
<div class="collapsible-body">
<ul>
</#
macro
>
...
...
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