summaryrefslogtreecommitdiffstats
path: root/templates/base/navbar.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base/navbar.tmpl')
-rw-r--r--templates/base/navbar.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/base/navbar.tmpl b/templates/base/navbar.tmpl
index 82fc3ae180..a52ce6c034 100644
--- a/templates/base/navbar.tmpl
+++ b/templates/base/navbar.tmpl
@@ -1,8 +1,8 @@
<div class="gogs-masthead navbar navbar-fixed-top" id="masthead">
<div class="container">
<nav class="gogs-nav">
- <a class="gogs-nav-item active" href="/"><img src="/img/favicon.png" alt="Gogs Logo" id="gogs-logo"></a>
- <a class="gogs-nav-item" href="#">Dashboard</a>
+ <a id="gogs-nav-logo" class="gogs-nav-item{{if .PageIsHome}} active{{end}}" href="/"><img src="/img/favicon.png" alt="Gogs Logo" id="gogs-logo"></a>
+ <a class="gogs-nav-item{{if .PageIsUserDashboard}} active{{end}}" href="#">Dashboard</a>
<a class="gogs-nav-item" href="#">Explore</a>
<a class="gogs-nav-item" href="#">Help</a>{{if .IsSigned}}
<a id="gogs-nav-out" class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/user/login/"><i class="fa fa-power-off fa-lg"></i></a>