|
|
@ -254,84 +254,68 @@ |
|
|
|
<div class="ui divider"></div> |
|
|
|
<div class="ui divider"></div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="ui depending"> |
|
|
|
<div class="ui depending"> |
|
|
|
<span class="text"><strong>{{.i18n.Tr "repo.issues.dependency.title"}}</strong></span> |
|
|
|
{{if (and (not .BlockedByDependencies) (not .BlockingDependencies))}} |
|
|
|
<br> |
|
|
|
<span class="text"><strong>{{.i18n.Tr "repo.issues.dependency.title"}}</strong></span> |
|
|
|
{{if .BlockedByDependencies}} |
|
|
|
<br> |
|
|
|
|
|
|
|
<p>{{if .Issue.IsPull}} |
|
|
|
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.pr_no_dependencies"}} |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.issue_no_dependencies"}} |
|
|
|
|
|
|
|
{{end}}</p> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{if .BlockingDependencies}} |
|
|
|
<span class="text" data-tooltip="{{if .Issue.IsPull}} |
|
|
|
<span class="text" data-tooltip="{{if .Issue.IsPull}} |
|
|
|
{{.i18n.Tr "repo.issues.dependency.issue_closing_blockedby"}} |
|
|
|
{{.i18n.Tr "repo.issues.dependency.pr_close_blocks"}} |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
{{.i18n.Tr "repo.issues.dependency.pr_closing_blockedby"}} |
|
|
|
{{.i18n.Tr "repo.issues.dependency.issue_close_blocks"}} |
|
|
|
{{end}}" data-inverted=""> |
|
|
|
{{end}}" data-inverted=""> |
|
|
|
{{.i18n.Tr "repo.issues.dependency.blocked_by_short"}}: |
|
|
|
<strong>{{.i18n.Tr "repo.issues.dependency.blocks_short"}}</strong> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<div class="ui relaxed divided list"> |
|
|
|
<div class="ui relaxed divided list"> |
|
|
|
{{range .BlockedByDependencies}} |
|
|
|
{{range .BlockingDependencies}} |
|
|
|
<div class="item"> |
|
|
|
<div class="item{{if .IsClosed}} is-closed{{end}}"> |
|
|
|
<div class="right floated content"> |
|
|
|
<div class="ui black label">#{{.Index}}</div> |
|
|
|
|
|
|
|
<a class="title has-emoji" href="{{$.RepoLink}}/issues/{{.Index}}">{{.Title}}</a> |
|
|
|
|
|
|
|
<div class="ui transparent label right floated"> |
|
|
|
{{if $.CanCreateIssueDependencies}} |
|
|
|
{{if $.CanCreateIssueDependencies}} |
|
|
|
<a class="delete-dependency-button" onclick="deleteDependencyModal({{.ID}}, 'blockedBy');"> |
|
|
|
<a class="delete-dependency-button" onclick="deleteDependencyModal({{.ID}}, 'blocking');" |
|
|
|
|
|
|
|
data-tooltip="{{$.i18n.Tr "repo.issues.dependency.remove_info"}}" data-inverted=""> |
|
|
|
<i class="delete icon text red"></i> |
|
|
|
<i class="delete icon text red"></i> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{if .IsClosed}} |
|
|
|
|
|
|
|
<div class="ui red mini label"> |
|
|
|
|
|
|
|
<i class="octicon octicon-issue-closed"></i> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
<div class="ui green mini label"> |
|
|
|
|
|
|
|
<i class="octicon octicon-issue-opened"></i> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="ui black label">#{{.Index}}</div> |
|
|
|
|
|
|
|
<a class="title has-emoji" href="{{$.RepoLink}}/issues/{{.Index}}">{{.Title}}</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
|
|
{{if .BlockingDependencies}} |
|
|
|
{{if .BlockedByDependencies}} |
|
|
|
<span class="text" data-tooltip="{{if .Issue.IsPull}} |
|
|
|
<span class="text" data-tooltip="{{if .Issue.IsPull}} |
|
|
|
{{.i18n.Tr "repo.issues.dependency.pr_close_blocks"}} |
|
|
|
{{.i18n.Tr "repo.issues.dependency.issue_closing_blockedby"}} |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
{{.i18n.Tr "repo.issues.dependency.issue_close_blocks"}} |
|
|
|
{{.i18n.Tr "repo.issues.dependency.pr_closing_blockedby"}} |
|
|
|
{{end}}" data-inverted=""> |
|
|
|
{{end}}" data-inverted=""> |
|
|
|
{{.i18n.Tr "repo.issues.dependency.blocks_short"}}: |
|
|
|
<strong>{{.i18n.Tr "repo.issues.dependency.blocked_by_short"}}</strong> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<div class="ui relaxed divided list"> |
|
|
|
<div class="ui relaxed divided list"> |
|
|
|
{{range .BlockingDependencies}} |
|
|
|
{{range .BlockedByDependencies}} |
|
|
|
<div class="item"> |
|
|
|
<div class="item{{if .IsClosed}} is-closed{{end}}"> |
|
|
|
<div class="right floated content"> |
|
|
|
<div class="ui black label">#{{.Index}}</div> |
|
|
|
|
|
|
|
<a class="title has-emoji" href="{{$.RepoLink}}/issues/{{.Index}}">{{.Title}}</a> |
|
|
|
|
|
|
|
<div class="ui transparent label right floated"> |
|
|
|
{{if $.CanCreateIssueDependencies}} |
|
|
|
{{if $.CanCreateIssueDependencies}} |
|
|
|
<a class="delete-dependency-button" onclick="deleteDependencyModal({{.ID}}, 'blocking');"> |
|
|
|
<a class="delete-dependency-button" onclick="deleteDependencyModal({{.ID}}, 'blockedBy');" |
|
|
|
|
|
|
|
data-tooltip="{{$.i18n.Tr "repo.issues.dependency.remove_info"}}" data-inverted=""> |
|
|
|
<i class="delete icon text red"></i> |
|
|
|
<i class="delete icon text red"></i> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{if .IsClosed}} |
|
|
|
|
|
|
|
<div class="ui red tiny label"> |
|
|
|
|
|
|
|
<i class="octicon octicon-issue-closed"></i> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
<div class="ui green mini label"> |
|
|
|
|
|
|
|
<i class="octicon octicon-issue-opened"></i> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="ui black label">#{{.Index}}</div> |
|
|
|
|
|
|
|
<a class="title has-emoji" href="{{$.RepoLink}}/issues/{{.Index}}">{{.Title}}</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
|
|
{{if (and (not .BlockedByDependencies) (not .BlockingDependencies))}} |
|
|
|
|
|
|
|
<p>{{if .Issue.IsPull}} |
|
|
|
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.pr_no_dependencies"}} |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
{{.i18n.Tr "repo.issues.dependency.issue_no_dependencies"}} |
|
|
|
|
|
|
|
{{end}}</p> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{if .CanCreateIssueDependencies}} |
|
|
|
{{if .CanCreateIssueDependencies}} |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<form method="POST" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/dependency/add" id="addDependencyForm"> |
|
|
|
<form method="POST" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/dependency/add" id="addDependencyForm"> |
|
|
|