diff options
author | Justin Nuß <justin.nuss@hmmh.de> | 2014-07-22 11:57:10 +0200 |
---|---|---|
committer | Justin Nuß <justin.nuss@hmmh.de> | 2014-07-22 11:57:10 +0200 |
commit | 18718afb363dbc4bb2545a73936add5f152ffc09 (patch) | |
tree | 09bb2e1ef5afc0e34478279b397f02cfd8c88864 /templates/repo/nav.tmpl | |
parent | 0b4fcf12244c85653e92c87293f63024301d8a66 (diff) | |
download | gitea-18718afb363dbc4bb2545a73936add5f152ffc09.tar.gz gitea-18718afb363dbc4bb2545a73936add5f152ffc09.zip |
Hide watch/unwatch button if not loggedin
Diffstat (limited to 'templates/repo/nav.tmpl')
-rw-r--r-- | templates/repo/nav.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/nav.tmpl b/templates/repo/nav.tmpl index ea7799b351..f6530fa1c0 100644 --- a/templates/repo/nav.tmpl +++ b/templates/repo/nav.tmpl @@ -31,6 +31,7 @@ </div> </div> </div> + {{if .IsSigned}} <div class="btn-group {{if .IsRepositoryWatching}}watching{{else}}no-watching{{end}}" id="repo-watching" data-watch="/{{.Owner.Name}}/{{.Repository.Name}}/action/watch" data-unwatch="/{{.Owner.Name}}/{{.Repository.Name}}/action/unwatch"> {{if .IsRepositoryWatching}} <button type="button" class="btn btn-default"><i class="fa fa-eye fa-lg fa-m"></i></button> @@ -52,6 +53,7 @@ </div> </div> </div> + {{end}} <!-- <div class="btn-group"> <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Star"><i class="fa fa-star"></i> {{.Repository.NumStars}}</button> </div> --> |