diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-06 21:33:17 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-06 21:33:17 +0800 |
commit | 4b912b9ae6e087271c0c98b6e444384555ea3e84 (patch) | |
tree | 1b5f0826c82aec2cb03d1f2fd86af2bd8bf69da6 /templates/base | |
parent | e878bfb80f52c334a18fbf7b18f79359f7d373af (diff) | |
download | gitea-4b912b9ae6e087271c0c98b6e444384555ea3e84.tar.gz gitea-4b912b9ae6e087271c0c98b6e444384555ea3e84.zip |
signed-in dashboard and navbar changes
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/head.tmpl | 2 | ||||
-rw-r--r-- | templates/base/navbar.tmpl | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 0294ba49a5..e881e7f56d 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -16,7 +16,7 @@ <script src="/js/jquery-1.10.1.min.js"></script> <script src="/js/bootstrap.min.js"></script> <script src="/js/app.js"></script> - <title>{{.Title}} - {{AppName}}</title> + <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title> </head> <body> <noscript>Please enable JavaScript in your browser!</noscript>
\ No newline at end of file diff --git a/templates/base/navbar.tmpl b/templates/base/navbar.tmpl index 00112c03d3..82fc3ae180 100644 --- a/templates/base/navbar.tmpl +++ b/templates/base/navbar.tmpl @@ -4,15 +4,14 @@ <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 class="gogs-nav-item" href="#">Explore</a> - <a class="gogs-nav-item" href="#">Help</a> - - <!--<a class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/login/">Sign in</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> - <a id="gogs-nav-avatar" class="gogs-nav-item navbar-right" href="/user/profile" data-toggle="tooltip" data-placement="bottom" title="Username"> + <a id="gogs-nav-avatar" class="gogs-nav-item navbar-right" href="/user/profile" data-toggle="tooltip" data-placement="bottom" title="{{.SignedUserName}}"> <img src="http://1.gravatar.com/avatar/x?s=28" alt="user-avatar" title="username"/> </a> <a class="navbar-right gogs-nav-item" href="/repo/create" data-toggle="tooltip" data-placement="bottom" title="New Repository"><i class="fa fa-plus fa-lg"></i></a> <a class="navbar-right gogs-nav-item" href="#" data-toggle="tooltip" data-placement="bottom" title="Setting"><i class="fa fa-cogs fa-lg"></i></a> + {{else}}<a id="gogs-nav-signin" class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/user/login/">Sign in</a>{{end}} </nav> </div> </div> |