|
|
@ -13,20 +13,24 @@ |
|
|
|
<span class="caret"></span> |
|
|
|
<span class="caret"></span> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="btn-group {{if .IsRepositoryWatching}}watching{{end}}" id="gogs-repo-watching"> |
|
|
|
<div class="btn-group {{if .IsRepositoryWatching}}watching{{else}}no-watching{{end}}" id="gogs-repo-watching" data-watch="/{{.SignedUser.Name}}/{{.Repository.Name}}/action/watch" data-unwatch="/{{.SignedUser.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> |
|
|
|
<button type="button" class="btn btn-default"><i class="fa fa-eye fa-lg fa-m"></i></button> |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
<button type="button" class="btn btn-default"><i class="fa fa-eye-slash fa-lg fa-m"></i></button> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<span class="caret"></span> |
|
|
|
<span class="caret"></span> |
|
|
|
<span class="sr-only">Toggle Dropdown</span> |
|
|
|
<span class="sr-only">Toggle Dropdown</span> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<div class="dropdown-menu" role="menu"> |
|
|
|
<div class="dropdown-menu" role="menu"> |
|
|
|
<div class="dropdown-item text-left" data-val="not-watching"> |
|
|
|
<div class="dropdown-item text-left to-unwatch"> |
|
|
|
<h4 role="presentation" class="dropdown-header">Not Watching</h4> |
|
|
|
<h4 role="presentation" class="dropdown-header {{if not .IsRepositoryWatching}}text-primary{{end}}">Not Watching</h4> |
|
|
|
<p class="description">You only receive notifications for conversations in which you participate or are @mentioned.</p> |
|
|
|
<p class="description">You only receive notifications for conversations in which you participate or are @mentioned.</p> |
|
|
|
<p class="divider"></p> |
|
|
|
<p class="divider"></p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="dropdown-item text-left" data-val="watching"> |
|
|
|
<div class="dropdown-item text-left to-watch"> |
|
|
|
<h4 role="presentation" class="dropdown-header">Watching</h4> |
|
|
|
<h4 role="presentation" class="dropdown-header {{if .IsRepositoryWatching}}text-primary{{end}}">Watching</h4> |
|
|
|
<p class="description">You receive notifications for all conversations in this repository.</p> |
|
|
|
<p class="description">You receive notifications for all conversations in this repository.</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|