summaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-11 12:26:23 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-11 12:26:23 -0400
commita5fcaae5ee550ef28a77b9387f6c75192ef1a88a (patch)
tree4f50830095f899c3c3746eddc4b16295e38fb2c4 /templates/base
parentb26df298651018f5787a545c765856aed1cf94e4 (diff)
downloadgitea-a5fcaae5ee550ef28a77b9387f6c75192ef1a88a.tar.gz
gitea-a5fcaae5ee550ef28a77b9387f6c75192ef1a88a.zip
UPDATE README
Diffstat (limited to 'templates/base')
-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 1f908f39c3..8d6ca47e9c 100644
--- a/templates/base/navbar.tmpl
+++ b/templates/base/navbar.tmpl
@@ -4,7 +4,7 @@
<a id="nav-logo" class="nav-item pull-left{{if .PageIsHome}} active{{end}}" href="/"><img src="/img/favicon.png" alt="Gogs Logo" id="logo"></a>
<a class="nav-item pull-left{{if .PageIsUserDashboard}} active{{end}}" href="/">Dashboard</a>
<a class="nav-item pull-left{{if .PageIsHelp}} active{{end}}" href="https://github.com/gogits/gogs/wiki">Help</a>{{if .IsSigned}}
- <form class="nav-item pull-left{{if .PageIsNewRepo}} active{{end}}" id="nav-search-form">
+ {{if .Repository}}<form class="nav-item pull-left{{if .PageIsNewRepo}} active{{end}}" id="nav-search-form">
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">All Repositories <span class="caret"></span></button>
@@ -16,7 +16,7 @@
</div>
<input type="search" class="form-control input-sm" name="q" placeholder="search code, commits and issues"/>
</div>
- </form>
+ </form>{{end}}
<a id="nav-out" class="nav-item navbar-right navbar-btn btn btn-danger" href="/user/logout/"><i class="fa fa-power-off fa-lg"></i></a>
<a id="nav-avatar" class="nav-item navbar-right{{if .PageIsUserProfile}} active{{end}}" href="{{.SignedUser.HomeLink}}" data-toggle="tooltip" data-placement="bottom" title="{{.SignedUserName}}">
<img src="{{.SignedUser.AvatarLink}}?s=28" alt="user-avatar" title="username"/>