@ -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 tw-flex tw-content -center muted">
<a class="text tw-flex tw-items -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 tw-flex tw-content -center gt-py-3">
<div class="item tw-flex tw-items -center gt-py-3">
<div class="tw-flex tw-content -center tw-flex-1">
<div class="tw-flex tw-items -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="tw-flex tw-content -center gt-gap-3">
<div class="tw-flex tw-items -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 tw-flex tw-content -center 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-items -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 tw-flex tw-content -center gt-py-3">
<div class="item tw-flex tw-items -center gt-py-3">
<div class="tw-flex tw-content -center tw-flex-1">
<div class="tw-flex tw-items -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="tw-flex tw-content -center gt-gap-3">
<div class="tw-flex tw-items -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>
@ -361,7 +361,7 @@
</div>
</div>
{{ if ne .Issue .DeadlineUnix 0 }}
{{ if ne .Issue .DeadlineUnix 0 }}
<p>
<p>
<div class="tw-flex tw-justify-between tw-content -center">
<div class="tw-flex tw-justify-between tw-items -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,7 +417,7 @@
</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 }} tw-flex tw-content -center tw-justify-between">
<div class="item dependency {{ if .Issue .IsClosed }} is-closed {{ end }} tw-flex tw-items -center tw-justify-between">
<div class="item-left tw-flex tw-justify-center tw-flex-col tw-flex-1 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 }}
@ -426,7 +426,7 @@
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
</div>
</div>
</div>
</div>
<div class="item-right tw-flex tw-content -center gt-m-2">
<div class="item-right tw-flex tw-items -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 tw-flex tw-content -center tw-justify-between gt-ellipsis">
<div class="item tw-flex tw-items -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,7 +449,7 @@
</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 }} tw-flex tw-content -center tw-justify-between">
<div class="item dependency {{ if .Issue .IsClosed }} is-closed {{ end }} tw-flex tw-items -center tw-justify-between">
<div class="item-left tw-flex tw-justify-center tw-flex-col tw-flex-1 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 }}
@ -458,7 +458,7 @@
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
</div>
</div>
</div>
</div>
<div class="item-right tw-flex tw-content -center gt-m-2">
<div class="item-right tw-flex tw-items -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,7 +469,7 @@
{{ end }}
{{ end }}
{{ if $ .CanCreateIssueDependencies }}
{{ if $ .CanCreateIssueDependencies }}
{{ range .BlockedByDependenciesNotPermitted }}
{{ range .BlockedByDependenciesNotPermitted }}
<div class="item dependency {{ if .Issue .IsClosed }} is-closed {{ end }} tw-flex tw-content -center tw-justify-between">
<div class="item dependency {{ if .Issue .IsClosed }} is-closed {{ end }} tw-flex tw-items -center tw-justify-between">
<div class="item-left tw-flex tw-justify-center tw-flex-col tw-flex-1 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>
@ -481,7 +481,7 @@
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
{{ .Repository .OwnerName }} / {{ .Repository .Name }}
</div>
</div>
</div>
</div>
<div class="item-right tw-flex tw-content -center gt-m-2">
<div class="item-right tw-flex tw-items -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 tw-flex tw-content -center tw-justify-between gt-ellipsis">
<div class="item tw-flex tw-items -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 tw-content -center" data-tooltip-content=" {{ $ issueReferenceLink }} ">
<div class="row tw-items -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>