|
|
|
@ -524,6 +524,45 @@ |
|
|
|
|
{{end}} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
{{if and .CanCreateIssueDependencies (not .Repository.IsArchived)}} |
|
|
|
|
<input type="hidden" id="repolink" value="{{$.RepoRelPath}}"> |
|
|
|
|
<input type="hidden" id="repoId" value="{{.Repository.ID}}"> |
|
|
|
|
<input type="hidden" id="crossRepoSearch" value="{{.AllowCrossRepositoryDependencies}}"> |
|
|
|
|
<input type="hidden" id="type" value="{{.IssueType}}"> |
|
|
|
|
<!-- I know, there is probably a better way to do this --> |
|
|
|
|
<input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/> |
|
|
|
|
|
|
|
|
|
<div class="ui basic modal remove-dependency"> |
|
|
|
|
<div class="ui icon header"> |
|
|
|
|
{{svg "octicon-trashcan"}} |
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.remove_header"}} |
|
|
|
|
</div> |
|
|
|
|
<div class="content"> |
|
|
|
|
<form method="POST" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/dependency/delete" id="removeDependencyForm"> |
|
|
|
|
{{$.CsrfTokenHtml}} |
|
|
|
|
<input type="hidden" value="" name="removeDependencyID" id="removeDependencyID"/> |
|
|
|
|
<input type="hidden" value="" name="dependencyType" id="dependencyType"/> |
|
|
|
|
</form> |
|
|
|
|
<p>{{if .Issue.IsPull}} |
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.pr_remove_text"}} |
|
|
|
|
{{else}} |
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.issue_remove_text"}} |
|
|
|
|
{{end}}</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="actions"> |
|
|
|
|
<div class="ui basic red cancel inverted button"> |
|
|
|
|
<i class="remove icon"></i> |
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.cancel"}} |
|
|
|
|
</div> |
|
|
|
|
<div class="ui basic green ok inverted button"> |
|
|
|
|
<i class="checkmark icon"></i> |
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.remove"}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{{end}} |
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
{{if and .IsRepoAdmin (not .Repository.IsArchived)}} |
|
|
|
|
<div class="ui divider"></div> |
|
|
|
|
<div class="ui watching"> |
|
|
|
@ -547,6 +586,7 @@ |
|
|
|
|
{{.i18n.Tr "repo.issues.lock.title"}} |
|
|
|
|
{{end}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="content"> |
|
|
|
|
<div class="ui warning message text left"> |
|
|
|
|
{{ if .Issue.IsLocked }} |
|
|
|
@ -604,44 +644,5 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{{if and .CanCreateIssueDependencies (not .Repository.IsArchived)}} |
|
|
|
|
<input type="hidden" id="repolink" value="{{$.RepoRelPath}}"> |
|
|
|
|
<input type="hidden" id="repoId" value="{{.Repository.ID}}"> |
|
|
|
|
<input type="hidden" id="crossRepoSearch" value="{{.AllowCrossRepositoryDependencies}}"> |
|
|
|
|
<input type="hidden" id="type" value="{{.IssueType}}"> |
|
|
|
|
<!-- I know, there is probably a better way to do this --> |
|
|
|
|
<input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/> |
|
|
|
|
|
|
|
|
|
<div class="ui basic modal remove-dependency"> |
|
|
|
|
<div class="ui icon header"> |
|
|
|
|
{{svg "octicon-trashcan"}} |
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.remove_header"}} |
|
|
|
|
</div> |
|
|
|
|
<div class="content"> |
|
|
|
|
<form method="POST" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/dependency/delete" id="removeDependencyForm"> |
|
|
|
|
{{$.CsrfTokenHtml}} |
|
|
|
|
<input type="hidden" value="" name="removeDependencyID" id="removeDependencyID"/> |
|
|
|
|
<input type="hidden" value="" name="dependencyType" id="dependencyType"/> |
|
|
|
|
</form> |
|
|
|
|
<p>{{if .Issue.IsPull}} |
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.pr_remove_text"}} |
|
|
|
|
{{else}} |
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.issue_remove_text"}} |
|
|
|
|
{{end}}</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="actions"> |
|
|
|
|
<div class="ui basic red cancel inverted button"> |
|
|
|
|
<i class="remove icon"></i> |
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.cancel"}} |
|
|
|
|
</div> |
|
|
|
|
<div class="ui basic green ok inverted button"> |
|
|
|
|
<i class="checkmark icon"></i> |
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.remove"}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{{end}} |
|
|
|
|
{{end}} |
|
|
|
|