chore: updated tmpl as per upstream timetracking PR merge #8
@ -61,6 +61,43 @@
|
|||||||
</div>
|
</div>
|
||||||
{{else if .IsSigned}}
|
{{else if .IsSigned}}
|
||||||
<div class="right stackable menu">
|
<div class="right stackable menu">
|
||||||
|
{{$issueURL := Printf "%s/%s/issues/%d" AppSubUrl .ActiveStopwatch.RepoSlug .ActiveStopwatch.IssueIndex}}
|
||||||
|
<a class="active-stopwatch-trigger item ui label {{if not .ActiveStopwatch}}hidden{{end}}" href="{{$issueURL}}">
|
||||||
|
<span class="text">
|
||||||
|
<span class="fitted item">
|
||||||
|
{{svg "octicon-stopwatch"}}
|
||||||
|
<span class="red" style="position:absolute; right:-0.6em; top:-0.6em;">{{svg "octicon-dot-fill"}}</span>
|
||||||
|
</span>
|
||||||
|
<span class="sr-mobile-only">{{.i18n.Tr "active_stopwatch"}}</span>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<div class="ui popup very wide">
|
||||||
|
<div class="df ac">
|
||||||
|
<a class="stopwatch-link df ac" href="{{$issueURL}}">
|
||||||
|
{{svg "octicon-issue-opened"}}
|
||||||
|
<span class="stopwatch-issue">{{.ActiveStopwatch.RepoSlug}}#{{.ActiveStopwatch.IssueIndex}}</span>
|
||||||
|
<span class="ui label blue stopwatch-time my-0 mx-4" data-seconds="{{.ActiveStopwatch.Seconds}}">
|
||||||
|
{{if .ActiveStopwatch}}{{Sec2Time .ActiveStopwatch.Seconds}}{{end}}
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<form class="stopwatch-commit" method="POST" action="{{$issueURL}}/times/stopwatch/toggle">
|
||||||
|
{{.CsrfTokenHtml}}
|
||||||
|
<button
|
||||||
|
class="ui button mini compact basic icon fitted poping up"
|
||||||
|
data-content="{{.i18n.Tr "repo.issues.stop_tracking"}}"
|
||||||
|
data-position="top right" data-variation="small inverted"
|
||||||
|
>{{svg "octicon-square-fill"}}</button>
|
||||||
|
</form>
|
||||||
|
<form class="stopwatch-cancel" method="POST" action="{{$issueURL}}/times/stopwatch/cancel">
|
||||||
|
{{.CsrfTokenHtml}}
|
||||||
|
<button
|
||||||
|
class="ui button mini compact basic icon fitted poping up"
|
||||||
|
data-content="{{.i18n.Tr "repo.issues.cancel_tracking"}}"
|
||||||
|
data-position="top right" data-variation="small inverted"
|
||||||
|
>{{svg "octicon-trashcan"}}</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<a href="/notifications" class="item poping up" data-content='{{.i18n.Tr "notifications"}}' data-variation="tiny inverted">
|
<a href="/notifications" class="item poping up" data-content='{{.i18n.Tr "notifications"}}' data-variation="tiny inverted">
|
||||||
<span class="text">
|
<span class="text">
|
||||||
<span class="fitted">{{svg "octicon-bell"}}</span>
|
<span class="fitted">{{svg "octicon-bell"}}</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user