|
@ -155,8 +155,8 @@ |
|
|
</form> |
|
|
</form> |
|
|
{{if $.IsStopwatchRunning}} |
|
|
{{if $.IsStopwatchRunning}} |
|
|
<div class="ui buttons fluid stop-cancel"> |
|
|
<div class="ui buttons fluid stop-cancel"> |
|
|
<button onclick="this.disabled=true;toggleStopwatch()" class="ui button stop">{{.i18n.Tr "repo.issues.stop_tracking"}}</button> |
|
|
|
|
|
<button onclick="this.disabled=true;cancelStopwatch()" class="ui negative button cancel">{{.i18n.Tr "repo.issues.cancel_tracking"}}</button> |
|
|
|
|
|
|
|
|
<button onclick="this.disabled=true;window.toggleStopwatch()" class="ui button stop">{{.i18n.Tr "repo.issues.stop_tracking"}}</button> |
|
|
|
|
|
<button onclick="this.disabled=true;window.cancelStopwatch()" class="ui negative button cancel">{{.i18n.Tr "repo.issues.cancel_tracking"}}</button> |
|
|
</div> |
|
|
</div> |
|
|
{{else}} |
|
|
{{else}} |
|
|
{{if .HasUserStopwatch}} |
|
|
{{if .HasUserStopwatch}} |
|
@ -165,8 +165,8 @@ |
|
|
</div> |
|
|
</div> |
|
|
{{end}} |
|
|
{{end}} |
|
|
<div class="ui buttons two fluid start-add"> |
|
|
<div class="ui buttons two fluid start-add"> |
|
|
<button onclick="this.disabled=true;toggleStopwatch()" class="ui button poping up start" data-content='{{.i18n.Tr "repo.issues.start_tracking"}}' data-position="top center" data-variation="small inverted">{{.i18n.Tr "repo.issues.start_tracking_short"}}</button> |
|
|
|
|
|
<button onclick="timeAddManual()" class="ui button green poping up add-time" data-content='{{.i18n.Tr "repo.issues.add_time"}}' data-position="top center" data-variation="small inverted">{{.i18n.Tr "repo.issues.add_time_short"}}</button> |
|
|
|
|
|
|
|
|
<button onclick="this.disabled=true;window.toggleStopwatch()" class="ui button poping up start" data-content='{{.i18n.Tr "repo.issues.start_tracking"}}' data-position="top center" data-variation="small inverted">{{.i18n.Tr "repo.issues.start_tracking_short"}}</button> |
|
|
|
|
|
<button onclick="window.timeAddManual()" class="ui button green poping up add-time" data-content='{{.i18n.Tr "repo.issues.add_time"}}' data-position="top center" data-variation="small inverted">{{.i18n.Tr "repo.issues.add_time_short"}}</button> |
|
|
<div class="ui mini modal"> |
|
|
<div class="ui mini modal"> |
|
|
<div class="header">{{.i18n.Tr "repo.issues.add_time"}}</div> |
|
|
<div class="header">{{.i18n.Tr "repo.issues.add_time"}}</div> |
|
|
<div class="content"> |
|
|
<div class="content"> |
|
@ -225,7 +225,7 @@ |
|
|
{{end}} |
|
|
{{end}} |
|
|
{{if and .IsIssueWriter (not .Repository.IsArchived)}} |
|
|
{{if and .IsIssueWriter (not .Repository.IsArchived)}} |
|
|
<br/> |
|
|
<br/> |
|
|
<a style="cursor:pointer;" onclick="toggleDeadlineForm();"><i class="edit icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_edit"}}</a> - |
|
|
|
|
|
|
|
|
<a style="cursor:pointer;" onclick="window.toggleDeadlineForm();"><i class="edit icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_edit"}}</a> - |
|
|
<a style="cursor:pointer;" onclick="updateDeadline('');"><i class="remove icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_remove"}}</a> |
|
|
<a style="cursor:pointer;" onclick="updateDeadline('');"><i class="remove icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_remove"}}</a> |
|
|
{{end}} |
|
|
{{end}} |
|
|
</p> |
|
|
</p> |
|
@ -235,7 +235,7 @@ |
|
|
|
|
|
|
|
|
{{if and .IsIssueWriter (not .Repository.IsArchived)}} |
|
|
{{if and .IsIssueWriter (not .Repository.IsArchived)}} |
|
|
<div {{if ne .Issue.DeadlineUnix 0}} style="display: none;"{{end}} id="deadlineForm"> |
|
|
<div {{if ne .Issue.DeadlineUnix 0}} style="display: none;"{{end}} id="deadlineForm"> |
|
|
<form class="ui fluid action input" action="{{AppSubUrl}}/api/v1/repos/{{.Repository.Owner.Name}}/{{.Repository.Name}}/issues/{{.Issue.Index}}" method="post" id="update-issue-deadline-form" onsubmit="setDeadline();return false;"> |
|
|
|
|
|
|
|
|
<form class="ui fluid action input" action="{{AppSubUrl}}/api/v1/repos/{{.Repository.Owner.Name}}/{{.Repository.Name}}/issues/{{.Issue.Index}}" method="post" id="update-issue-deadline-form" onsubmit="window.setDeadline();return false;"> |
|
|
{{$.CsrfTokenHtml}} |
|
|
{{$.CsrfTokenHtml}} |
|
|
<input required placeholder="{{.i18n.Tr "repo.issues.due_date_form"}}" {{if gt .Issue.DeadlineUnix 0}}value="{{.Issue.DeadlineUnix.Format "2006-01-02"}}"{{end}} type="date" name="deadlineDate" id="deadlineDate"> |
|
|
<input required placeholder="{{.i18n.Tr "repo.issues.due_date_form"}}" {{if gt .Issue.DeadlineUnix 0}}value="{{.Issue.DeadlineUnix.Format "2006-01-02"}}"{{end}} type="date" name="deadlineDate" id="deadlineDate"> |
|
|
<button class="ui green icon button"> |
|
|
<button class="ui green icon button"> |
|
@ -280,7 +280,7 @@ |
|
|
<div class="text small">{{.Repository.OwnerName}}/{{.Repository.Name}}</div> |
|
|
<div class="text small">{{.Repository.OwnerName}}/{{.Repository.Name}}</div> |
|
|
<div class="ui transparent label right floated nopadding"> |
|
|
<div class="ui transparent label right floated nopadding"> |
|
|
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} |
|
|
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} |
|
|
<a class="delete-dependency-button" onclick="deleteDependencyModal({{.Issue.ID}}, 'blocking');" |
|
|
|
|
|
|
|
|
<a class="delete-dependency-button" onclick="window.deleteDependencyModal({{.Issue.ID}}, 'blocking');" |
|
|
data-tooltip="{{$.i18n.Tr "repo.issues.dependency.remove_info"}}" data-inverted=""> |
|
|
data-tooltip="{{$.i18n.Tr "repo.issues.dependency.remove_info"}}" data-inverted=""> |
|
|
<i class="delete icon text red nopadding nomargin"></i> |
|
|
<i class="delete icon text red nopadding nomargin"></i> |
|
|
</a> |
|
|
</a> |
|
@ -307,7 +307,7 @@ |
|
|
<div class="text small">{{.Repository.OwnerName}}/{{.Repository.Name}}</div> |
|
|
<div class="text small">{{.Repository.OwnerName}}/{{.Repository.Name}}</div> |
|
|
<div class="ui transparent label right floated nopadding"> |
|
|
<div class="ui transparent label right floated nopadding"> |
|
|
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} |
|
|
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} |
|
|
<a class="delete-dependency-button" onclick="deleteDependencyModal({{.Issue.ID}}, 'blockedBy');" |
|
|
|
|
|
|
|
|
<a class="delete-dependency-button" onclick="window.deleteDependencyModal({{.Issue.ID}}, 'blockedBy');" |
|
|
data-tooltip="{{$.i18n.Tr "repo.issues.dependency.remove_info"}}" data-inverted=""> |
|
|
data-tooltip="{{$.i18n.Tr "repo.issues.dependency.remove_info"}}" data-inverted=""> |
|
|
<i class="delete icon text red nopadding nomargin"></i> |
|
|
<i class="delete icon text red nopadding nomargin"></i> |
|
|
</a> |
|
|
</a> |
|
|