Skip to content
Snippets Groups Projects
Commit 7aca3cb7 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#518 - add to navbar

parent 1d82a932
No related branches found
No related tags found
No related merge requests found
...@@ -157,6 +157,7 @@ menu.settings=Einstellungen ...@@ -157,6 +157,7 @@ menu.settings=Einstellungen
menu.settings.database=Datenbank menu.settings.database=Datenbank
menu.about=Über menu.about=Über
menu.hotkeys=Tastenkombination menu.hotkeys=Tastenkombination
menu.firstUseGuide=Einführung
menu.logout=Logout menu.logout=Logout
menu.accounts=Konten menu.accounts=Konten
menu.update=Update verfügbar menu.update=Update verfügbar
......
...@@ -156,6 +156,7 @@ menu.settings=Settings ...@@ -156,6 +156,7 @@ menu.settings=Settings
menu.settings.database=Database menu.settings.database=Database
menu.hotkeys=Hotkeys menu.hotkeys=Hotkeys
menu.about=About menu.about=About
menu.firstUseGuide=Introduction
menu.logout=Logout menu.logout=Logout
menu.accounts=Accounts menu.accounts=Accounts
menu.update=Update available menu.update=Update available
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</head> </head>
<body class="budgetmaster-blue-light"> <body class="budgetmaster-blue-light">
<#import "helpers/navbar.ftl" as navbar> <#import "helpers/navbar.ftl" as navbar>
<@navbar.navbar "home" settings/> <@navbar.navbar "firstUseGuide" settings/>
<#import "indexFunctions.ftl" as indexFunctions> <#import "indexFunctions.ftl" as indexFunctions>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
<@itemDivider/> <@itemDivider/>
<@itemWithIcon "hotkeys", "/hotkeys", locale.getString("menu.hotkeys"), "keyboard", "budgetmaster-grey", activeID/> <@itemWithIcon "hotkeys", "/hotkeys", locale.getString("menu.hotkeys"), "keyboard", "budgetmaster-grey", activeID/>
<@itemWithFontawesomeIcon "firstUseGuide", "/firstUse", locale.getString("menu.firstUseGuide"), "fas fa-graduation-cap", "budgetmaster-grey", activeID/>
<@itemWithIcon "about", "/about", locale.getString("menu.about"), "info", "budgetmaster-grey", activeID/> <@itemWithIcon "about", "/about", locale.getString("menu.about"), "info", "budgetmaster-grey", activeID/>
<@itemDivider/> <@itemDivider/>
...@@ -119,6 +120,14 @@ ...@@ -119,6 +120,14 @@
</#if> </#if>
</#macro> </#macro>
<#macro itemWithFontawesomeIcon ID link text icon activeColor activeID>
<#if activeID == ID>
<li class="active"><a href="<@s.url '${link}'/>" class="waves-effect no-padding"><div class="stripe ${activeColor}"></div><i class="${icon}"></i>${text}</a></li>
<#else>
<li><a href="<@s.url '${link}'/>" class="waves-effect"><i class="${icon}"></i>${text}</a></li>
</#if>
</#macro>
<#macro itemLogout text icon> <#macro itemLogout text icon>
<li><a class="waves-effect" id="button-logout"><i class="material-icons">${icon}</i>${text}</a></li> <li><a class="waves-effect" id="button-logout"><i class="material-icons">${icon}</i>${text}</a></li>
</#macro> </#macro>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment