|
@@ -51,6 +51,49 @@ |
|
|
</div> |
|
|
</div> |
|
|
{{if not .IsBeingCreated}} |
|
|
{{if not .IsBeingCreated}} |
|
|
<div class="repo-buttons"> |
|
|
<div class="repo-buttons"> |
|
|
|
|
|
<div class="ui labeled button" tabindex="0"> |
|
|
|
|
|
<div class="ui compact basic button"> |
|
|
|
|
|
<i class="icon fa-eye{{if not $.IsWatchingRepo}}-slash{{end}}"></i>{{if $.IsWatchingRepo}}{{$.i18n.Tr "repo.watched"}}{{else}}{{$.i18n.Tr "repo.notWatched"}}{{end}} |
|
|
|
|
|
<div class="ui dropdown floating"> |
|
|
|
|
|
<div class="text" style="display:none;"></div> |
|
|
|
|
|
<i class="dropdown icon"></i> |
|
|
|
|
|
{{$WatchNotifyType := or $.WatchNotifyType 0}} |
|
|
|
|
|
<div class="menu" style="margin-left:-64px;"> |
|
|
|
|
|
<div class="item {{if not $.IsWatchingRepo}}active selected{{end}}"> |
|
|
|
|
|
<form method="post" style="margin: 0;" action="{{$.RepoLink}}/action/unwatch?redirect_to={{$.Link}}"> |
|
|
|
|
|
{{$.CsrfTokenHtml}} |
|
|
|
|
|
<button type="submit" style="border:none;background:transparent;width:100%;text-align:left;font-weight:inherit;cursor:pointer;"> |
|
|
|
|
|
<i class="check icon" style="{{if $.IsWatchingRepo}}opacity:0{{end}}"></i> |
|
|
|
|
|
{{$.i18n.Tr "repo.un_watch"}} |
|
|
|
|
|
</button> |
|
|
|
|
|
</form> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="item {{if and $.IsWatchingRepo (eq $WatchNotifyType 9)}}active selected{{end}}"> |
|
|
|
|
|
<form method="post" style="margin: 0;" action="{{$.RepoLink}}/action/watch?redirect_to={{$.Link}}"> |
|
|
|
|
|
{{$.CsrfTokenHtml}} |
|
|
|
|
|
<button type="submit" style="border:none;background:transparent;width:100%;text-align:left;font-weight:inherit;cursor:pointer;"> |
|
|
|
|
|
<i class="check icon" style="{{if not (and $.IsWatchingRepo (eq $WatchNotifyType 9))}}opacity:0{{end}}"></i> |
|
|
|
|
|
{{$.i18n.Tr "repo.watch_all"}} |
|
|
|
|
|
</button> |
|
|
|
|
|
</form> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="item {{if and $.IsWatchingRepo (eq $WatchNotifyType 0)}}active selected{{end}}"> |
|
|
|
|
|
<form method="post" style="margin: 0;" action="{{$.RepoLink}}/action/watch_but_reject?redirect_to={{$.Link}}"> |
|
|
|
|
|
{{$.CsrfTokenHtml}} |
|
|
|
|
|
<button type="submit" style="border:none;background:transparent;width:100%;text-align:left;font-weight:inherit;cursor:pointer;"> |
|
|
|
|
|
<i class="check icon" style="{{if not (and $.IsWatchingRepo (eq $WatchNotifyType 0))}}opacity:0{{end}}"></i> |
|
|
|
|
|
{{$.i18n.Tr "repo.watch_no_notify"}} |
|
|
|
|
|
</button> |
|
|
|
|
|
</form> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<a class="ui basic label" href="{{.Link}}/watchers"> |
|
|
|
|
|
{{.NumWatches}} |
|
|
|
|
|
</a> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!-- |
|
|
<form method="post" style="margin: 0;" action="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}un{{end}}watch?redirect_to={{$.Link}}"> |
|
|
<form method="post" style="margin: 0;" action="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}un{{end}}watch?redirect_to={{$.Link}}"> |
|
|
{{$.CsrfTokenHtml}} |
|
|
{{$.CsrfTokenHtml}} |
|
|
<div class="ui labeled button" tabindex="0"> |
|
|
<div class="ui labeled button" tabindex="0"> |
|
@@ -61,7 +104,7 @@ |
|
|
{{.NumWatches}} |
|
|
{{.NumWatches}} |
|
|
</a> |
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
|
</form> |
|
|
|
|
|
|
|
|
</form> --> |
|
|
<form method="post" style="margin: 0;" action="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}un{{end}}star?redirect_to={{$.Link}}"> |
|
|
<form method="post" style="margin: 0;" action="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}un{{end}}star?redirect_to={{$.Link}}"> |
|
|
{{$.CsrfTokenHtml}} |
|
|
{{$.CsrfTokenHtml}} |
|
|
<div class="ui labeled button" tabindex="0"> |
|
|
<div class="ui labeled button" tabindex="0"> |
|
|