| @@ -52,13 +52,13 @@ | |||||
| {{if not .IsBeingCreated}} | {{if not .IsBeingCreated}} | ||||
| <div class="repo-buttons"> | <div class="repo-buttons"> | ||||
| <div class="ui labeled button" tabindex="0"> | <div class="ui labeled button" tabindex="0"> | ||||
| <div class="ui compact basic button" onclick="$('.__watch_btn__').dropdown('show')"> | |||||
| <div style="position:relative;" class="ui compact basic button" onclick="$('.__watch_btn__').dropdown('show')"> | |||||
| <i class="icon fa-eye{{if not $.IsWatchingRepo}}-slash{{end}}"></i>{{if $.IsWatchingRepo}}{{$.i18n.Tr "repo.watched"}}{{else}}{{$.i18n.Tr "repo.notWatched"}}{{end}} | <i class="icon fa-eye{{if not $.IsWatchingRepo}}-slash{{end}}"></i>{{if $.IsWatchingRepo}}{{$.i18n.Tr "repo.watched"}}{{else}}{{$.i18n.Tr "repo.notWatched"}}{{end}} | ||||
| <i class="dropdown icon" style="margin:0 -8px 0 4px"></i> | <i class="dropdown icon" style="margin:0 -8px 0 4px"></i> | ||||
| <div class="ui dropdown floating __watch_btn__" onclick="event.stopPropagation();"> | |||||
| <div style="position:absolute;left:0;top:23px;" class="ui dropdown floating __watch_btn__" onclick="event.stopPropagation();"> | |||||
| <div class="text" style="display:none;"></div> | <div class="text" style="display:none;"></div> | ||||
| {{$WatchNotifyType := or $.WatchNotifyType 0}} | {{$WatchNotifyType := or $.WatchNotifyType 0}} | ||||
| <div class="menu" style="margin-left:-64px;"> | |||||
| <div class="menu"> | |||||
| <div class="item {{if not $.IsWatchingRepo}}active selected{{end}}"> | <div class="item {{if not $.IsWatchingRepo}}active selected{{end}}"> | ||||
| <form method="post" style="margin: 0;" action="{{$.RepoLink}}/action/unwatch?redirect_to={{$.Link}}"> | <form method="post" style="margin: 0;" action="{{$.RepoLink}}/action/unwatch?redirect_to={{$.Link}}"> | ||||
| {{$.CsrfTokenHtml}} | {{$.CsrfTokenHtml}} | ||||