@ -3,7 +3,7 @@
{{ if .Issue .IsPull }}
{{ if .Issue .IsPull }}
<input id="reviewer_id" name="reviewer_id" type="hidden" value=" {{ .reviewer_id }} ">
<input id="reviewer_id" name="reviewer_id" type="hidden" value=" {{ .reviewer_id }} ">
<div class="ui {{ if or ( and ( not .Reviewers ) ( not .TeamReviewers ) ) ( not .CanChooseReviewer ) .Repository .IsArchived }} disabled {{ end }} floating jump select-reviewers-modify dropdown">
<div class="ui {{ if or ( and ( not .Reviewers ) ( not .TeamReviewers ) ) ( not .CanChooseReviewer ) .Repository .IsArchived }} disabled {{ end }} floating jump select-reviewers-modify dropdown">
<a class="text g t-d f g t-a c muted">
<a class="text tw -flex tw -content-center muted">
<strong> {{ ctx .Locale .Tr "repo.issues.review.reviewers" }} </strong>
<strong> {{ ctx .Locale .Tr "repo.issues.review.reviewers" }} </strong>
{{ if and .CanChooseReviewer ( not .Repository .IsArchived ) }}
{{ if and .CanChooseReviewer ( not .Repository .IsArchived ) }}
{{ svg "octicon-gear" 1 6 "gt-ml-2" }}
{{ svg "octicon-gear" 1 6 "gt-ml-2" }}
@ -50,17 +50,17 @@
<span class="no-select item {{ if or .OriginalReviews .PullReviewers }} gt-hidden {{ end }} "> {{ ctx .Locale .Tr "repo.issues.new.no_reviewers" }} </span>
<span class="no-select item {{ if or .OriginalReviews .PullReviewers }} gt-hidden {{ end }} "> {{ ctx .Locale .Tr "repo.issues.new.no_reviewers" }} </span>
<div class="selected">
<div class="selected">
{{ range .PullReviewers }}
{{ range .PullReviewers }}
<div class="item g t-d f g t-a c gt-py-3">
<div class="item tw -flex tw -content-center gt-py-3">
<div class="g t-d f g t-a c g t-f1">
<div class="tw -flex tw -content-center tw -flex- 1">
{{ if .User }}
{{ if .User }}
<a class="muted sidebar-item-link" href=" {{ .User .HomeLink }} "> {{ ctx .AvatarUtils .Avatar .User 2 0 "gt-mr-3" }} {{ .User .GetDisplayName }} </a>
<a class="muted sidebar-item-link" href=" {{ .User .HomeLink }} "> {{ ctx .AvatarUtils .Avatar .User 2 0 "gt-mr-3" }} {{ .User .GetDisplayName }} </a>
{{ else if .Team }}
{{ else if .Team }}
<span class="text"> {{ svg "octicon-people" 2 0 "gt-mr-3" }} {{ $ .Issue .Repo .OwnerName }} / {{ .Team .Name }} </span>
<span class="text"> {{ svg "octicon-people" 2 0 "gt-mr-3" }} {{ $ .Issue .Repo .OwnerName }} / {{ .Team .Name }} </span>
{{ end }}
{{ end }}
</div>
</div>
<div class="g t-d f g t-a c gt-gap-3">
<div class="tw -flex tw -content-center gt-gap-3">
{{ if ( and $ .Permission .IsAdmin ( or ( eq .Review .Type 1 ) ( eq .Review .Type 3 ) ) ( not $ .Issue .IsClosed ) ) }}
{{ if ( and $ .Permission .IsAdmin ( or ( eq .Review .Type 1 ) ( eq .Review .Type 3 ) ) ( not $ .Issue .IsClosed ) ) }}
<a href="#" class="ui muted icon g t-d f g t-a c show-modal" data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.dismiss_review" }} " data-modal="#dismiss-review-modal- {{ .Review .ID }} ">
<a href="#" class="ui muted icon tw -flex tw -content-center show-modal" data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.dismiss_review" }} " data-modal="#dismiss-review-modal- {{ .Review .ID }} ">
{{ svg "octicon-x" 2 0 }}
{{ svg "octicon-x" 2 0 }}
</a>
</a>
<div class="ui small modal" id="dismiss-review-modal- {{ .Review .ID }} ">
<div class="ui small modal" id="dismiss-review-modal- {{ .Review .ID }} ">
@ -99,14 +99,14 @@
</div>
</div>
{{ end }}
{{ end }}
{{ range .OriginalReviews }}
{{ range .OriginalReviews }}
<div class="item g t-d f g t-a c gt-py-3">
<div class="item tw -flex tw -content-center gt-py-3">
<div class="g t-d f g t-a c g t-f1">
<div class="tw -flex tw -content-center tw -flex- 1">
<a class="muted" href=" {{ $ .Repository .OriginalURL }} " data-tooltip-content=" {{ ctx .Locale .Tr "repo.migrated_from_fake" $ .Repository .GetOriginalURLHostname }} ">
<a class="muted" href=" {{ $ .Repository .OriginalURL }} " data-tooltip-content=" {{ ctx .Locale .Tr "repo.migrated_from_fake" $ .Repository .GetOriginalURLHostname }} ">
{{ svg ( MigrationIcon $ .Repository .GetOriginalURLHostname ) 2 0 "gt-mr-3" }}
{{ svg ( MigrationIcon $ .Repository .GetOriginalURLHostname ) 2 0 "gt-mr-3" }}
{{ .OriginalAuthor }}
{{ .OriginalAuthor }}
</a>
</a>
</div>
</div>
<div class="g t-d f g t-a c gt-gap-3">
<div class="tw -flex tw -content-center gt-gap-3">
{{ svg ( printf "octicon-%s" .Type .Icon ) 1 6 ( printf "text %s" ( .HTMLTypeColorName ) ) }}
{{ svg ( printf "octicon-%s" .Type .Icon ) 1 6 ( printf "text %s" ( .HTMLTypeColorName ) ) }}
</div>
</div>
</div>
</div>
@ -257,7 +257,7 @@
{{ if .Participants }}
{{ if .Participants }}
<span class="text"><strong> {{ ctx .Locale .Tr "repo.issues.num_participants" .NumParticipants }} </strong></span>
<span class="text"><strong> {{ ctx .Locale .Tr "repo.issues.num_participants" .NumParticipants }} </strong></span>
<div class="ui list g t-d f g t-fw">
<div class="ui list tw -flex tw -flex- wrap ">
{{ range .Participants }}
{{ range .Participants }}
<a {{ if gt .ID 0 }} href=" {{ .HomeLink }} " {{ end }} data-tooltip-content=" {{ .GetDisplayName }} ">
<a {{ if gt .ID 0 }} href=" {{ .HomeLink }} " {{ end }} data-tooltip-content=" {{ .GetDisplayName }} ">
{{ ctx .AvatarUtils .Avatar . 2 8 "gt-my-1 gt-mr-2" }}
{{ ctx .AvatarUtils .Avatar . 2 8 "gt-my-1 gt-mr-2" }}
@ -361,7 +361,7 @@
</div>
</div>
{{ if ne .Issue .DeadlineUnix 0 }}
{{ if ne .Issue .DeadlineUnix 0 }}
<p>
<p>
<div class="g t-d f g t-sb g t-a c">
<div class="tw -flex tw -ju stify- between tw -content-center ">
<div class="due-date {{ if .Issue .IsOverdue }} text red {{ end }} " {{ if .Issue .IsOverdue }} data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.due_date_overdue" }} " {{ end }} >
<div class="due-date {{ if .Issue .IsOverdue }} text red {{ end }} " {{ if .Issue .IsOverdue }} data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.due_date_overdue" }} " {{ end }} >
{{ svg "octicon-calendar" 1 6 "gt-mr-3" }}
{{ svg "octicon-calendar" 1 6 "gt-mr-3" }}
{{ DateTime "long" .Issue .DeadlineUnix .FormatDate }}
{{ DateTime "long" .Issue .DeadlineUnix .FormatDate }}
@ -417,8 +417,8 @@
</span>
</span>
<div class="ui relaxed divided list">
<div class="ui relaxed divided list">
{{ range .BlockingDependencies }}
{{ range .BlockingDependencies }}
<div class="item dependency {{ if .Issue .IsClosed }} is-closed {{ end }} gt-df gt-ac gt-sb ">
<div class="item dependency {{ if .Issue .IsClosed }} is-closed {{ end }} tw-flex tw-content-center tw-justify-between ">
<div class="item-left g t-d f g t-jc g t-fc g t-f1 gt-ellipsis">
<div class="item-left tw -flex tw -justify- center tw -flex- col tw -flex- 1 gt-ellipsis">
<a class="title muted" href=" {{ .Issue .Link }} " data-tooltip-content="# {{ .Issue .Index }} {{ .Issue .Title | RenderEmoji $ .Context }} ">
<a class="title muted" href=" {{ .Issue .Link }} " data-tooltip-content="# {{ .Issue .Index }} {{ .Issue .Title | RenderEmoji $ .Context }} ">
# {{ .Issue .Index }} {{ .Issue .Title | RenderEmoji $ .Context }}
# {{ .Issue .Index }} {{ .Issue .Title | RenderEmoji $ .Context }}
</a>
</a>
@ -426,7 +426,7 @@
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
</div>
</div>
</div>
</div>
<div class="item-right g t-d f g t-a c gt-m-2">
<div class="item-right tw -flex tw -content-center gt-m-2">
{{ if and $ .CanCreateIssueDependencies ( not $ .Repository .IsArchived ) }}
{{ if and $ .CanCreateIssueDependencies ( not $ .Repository .IsArchived ) }}
<a class="delete-dependency-button ci muted" data-id=" {{ .Issue .ID }} " data-type="blocking" data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.dependency.remove_info" }} ">
<a class="delete-dependency-button ci muted" data-id=" {{ .Issue .ID }} " data-type="blocking" data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.dependency.remove_info" }} ">
{{ svg "octicon-trash" 1 6 }}
{{ svg "octicon-trash" 1 6 }}
@ -436,7 +436,7 @@
</div>
</div>
{{ end }}
{{ end }}
{{ if .BlockingDependenciesNotPermitted }}
{{ if .BlockingDependenciesNotPermitted }}
<div class="item gt-df gt-ac gt-sb gt-ellipsis">
<div class="item tw-flex tw-content-center tw-justify-between gt-ellipsis">
<span> {{ ctx .Locale .TrN ( len .BlockingDependenciesNotPermitted ) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" ( len .BlockingDependenciesNotPermitted ) }} </span>
<span> {{ ctx .Locale .TrN ( len .BlockingDependenciesNotPermitted ) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" ( len .BlockingDependenciesNotPermitted ) }} </span>
</div>
</div>
{{ end }}
{{ end }}
@ -449,8 +449,8 @@
</span>
</span>
<div class="ui relaxed divided list">
<div class="ui relaxed divided list">
{{ range .BlockedByDependencies }}
{{ range .BlockedByDependencies }}
<div class="item dependency {{ if .Issue .IsClosed }} is-closed {{ end }} gt-df gt-ac gt-sb ">
<div class="item dependency {{ if .Issue .IsClosed }} is-closed {{ end }} tw-flex tw-content-center tw-justify-between ">
<div class="item-left g t-d f g t-jc g t-fc g t-f1 gt-ellipsis">
<div class="item-left tw -flex tw -justify- center tw -flex- col tw -flex- 1 gt-ellipsis">
<a class="title muted" href=" {{ .Issue .Link }} " data-tooltip-content="# {{ .Issue .Index }} {{ .Issue .Title | RenderEmoji $ .Context }} ">
<a class="title muted" href=" {{ .Issue .Link }} " data-tooltip-content="# {{ .Issue .Index }} {{ .Issue .Title | RenderEmoji $ .Context }} ">
# {{ .Issue .Index }} {{ .Issue .Title | RenderEmoji $ .Context }}
# {{ .Issue .Index }} {{ .Issue .Title | RenderEmoji $ .Context }}
</a>
</a>
@ -458,7 +458,7 @@
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
</div>
</div>
</div>
</div>
<div class="item-right g t-d f g t-a c gt-m-2">
<div class="item-right tw -flex tw -content-center gt-m-2">
{{ if and $ .CanCreateIssueDependencies ( not $ .Repository .IsArchived ) }}
{{ if and $ .CanCreateIssueDependencies ( not $ .Repository .IsArchived ) }}
<a class="delete-dependency-button ci muted" data-id=" {{ .Issue .ID }} " data-type="blockedBy" data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.dependency.remove_info" }} ">
<a class="delete-dependency-button ci muted" data-id=" {{ .Issue .ID }} " data-type="blockedBy" data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.dependency.remove_info" }} ">
{{ svg "octicon-trash" 1 6 }}
{{ svg "octicon-trash" 1 6 }}
@ -469,8 +469,8 @@
{{ end }}
{{ end }}
{{ if $ .CanCreateIssueDependencies }}
{{ if $ .CanCreateIssueDependencies }}
{{ range .BlockedByDependenciesNotPermitted }}
{{ range .BlockedByDependenciesNotPermitted }}
<div class="item dependency {{ if .Issue .IsClosed }} is-closed {{ end }} gt-df gt-ac gt-sb ">
<div class="item dependency {{ if .Issue .IsClosed }} is-closed {{ end }} tw-flex tw-content-center tw-justify-between ">
<div class="item-left g t-d f g t-jc g t-fc g t-f1 gt-ellipsis">
<div class="item-left tw -flex tw -justify- center tw -flex- col tw -flex- 1 gt-ellipsis">
<div class="gt-ellipsis">
<div class="gt-ellipsis">
<span data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.dependency.no_permission.can_remove" }} "> {{ svg "octicon-lock" 1 6 }} </span>
<span data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.dependency.no_permission.can_remove" }} "> {{ svg "octicon-lock" 1 6 }} </span>
<span class="title" data-tooltip-content="# {{ .Issue .Index }} {{ .Issue .Title | RenderEmoji $ .Context }} ">
<span class="title" data-tooltip-content="# {{ .Issue .Index }} {{ .Issue .Title | RenderEmoji $ .Context }} ">
@ -481,7 +481,7 @@
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
</div>
</div>
</div>
</div>
<div class="item-right g t-d f g t-a c gt-m-2">
<div class="item-right tw -flex tw -content-center gt-m-2">
{{ if and $ .CanCreateIssueDependencies ( not $ .Repository .IsArchived ) }}
{{ if and $ .CanCreateIssueDependencies ( not $ .Repository .IsArchived ) }}
<a class="delete-dependency-button ci muted" data-id=" {{ .Issue .ID }} " data-type="blocking" data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.dependency.remove_info" }} ">
<a class="delete-dependency-button ci muted" data-id=" {{ .Issue .ID }} " data-type="blocking" data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.dependency.remove_info" }} ">
{{ svg "octicon-trash" 1 6 }}
{{ svg "octicon-trash" 1 6 }}
@ -491,7 +491,7 @@
</div>
</div>
{{ end }}
{{ end }}
{{ else if .BlockedByDependenciesNotPermitted }}
{{ else if .BlockedByDependenciesNotPermitted }}
<div class="item gt-df gt-ac gt-sb gt-ellipsis">
<div class="item tw-flex tw-content-center tw-justify-between gt-ellipsis">
<span> {{ ctx .Locale .TrN ( len .BlockedByDependenciesNotPermitted ) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" ( len .BlockedByDependenciesNotPermitted ) }} </span>
<span> {{ ctx .Locale .TrN ( len .BlockedByDependenciesNotPermitted ) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" ( len .BlockedByDependenciesNotPermitted ) }} </span>
</div>
</div>
{{ end }}
{{ end }}
@ -548,7 +548,7 @@
<div class="divider"></div>
<div class="divider"></div>
<div class="ui equal width compact grid">
<div class="ui equal width compact grid">
{{ $ issueReferenceLink : = printf "%s#%d" .Issue .Repo .FullName .Issue .Index }}
{{ $ issueReferenceLink : = printf "%s#%d" .Issue .Repo .FullName .Issue .Index }}
<div class="row g t-a c" data-tooltip-content=" {{ $ issueReferenceLink }} ">
<div class="row tw -content-center " data-tooltip-content=" {{ $ issueReferenceLink }} ">
<span class="text column truncate"> {{ ctx .Locale .Tr "repo.issues.reference_link" $ issueReferenceLink }} </span>
<span class="text column truncate"> {{ ctx .Locale .Tr "repo.issues.reference_link" $ issueReferenceLink }} </span>
<button class="ui two wide button column gt-p-3" data-clipboard-text=" {{ $ issueReferenceLink }} "> {{ svg "octicon-copy" 1 4 }} </button>
<button class="ui two wide button column gt-p-3" data-clipboard-text=" {{ $ issueReferenceLink }} "> {{ svg "octicon-copy" 1 4 }} </button>
</div>
</div>