@ -6,12 +6,12 @@
<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 ( not .Reviewers ) ( not .CanChooseReviewer ) .Repository .IsArchived }} disabled {{ end }} floating jump select-reviewers-modify dropdown">
<div class="ui {{ if or ( not .Reviewers ) ( not .CanChooseReviewer ) .Repository .IsArchived }} disabled {{ end }} floating jump select-reviewers-modify dropdown">
<sp an class="text">
<a class="text df ac muted ">
<strong> {{ .i18n .Tr "repo.issues.review.reviewers" }} </strong>
<strong> {{ .i18n .Tr "repo.issues.review.reviewers" }} </strong>
{{ if and .CanChooseReviewer ( not .Repository .IsArchived ) }}
{{ if and .CanChooseReviewer ( not .Repository .IsArchived ) }}
{{ svg "octicon-gear" }}
{{ svg "octicon-gear" 1 6 "ml-2" }}
{{ end }}
{{ end }}
</sp an >
</a>
<div class="filter menu" data-action="update" data-issue-id=" {{ $ .Issue .ID }} " data-update-url=" {{ $ .RepoLink }} /issues/request_review">
<div class="filter menu" data-action="update" data-issue-id=" {{ $ .Issue .ID }} " data-update-url=" {{ $ .RepoLink }} /issues/request_review">
<div class="header" style="text-transform: none;font-size:16px;"> {{ .i18n .Tr "repo.issues.new.add_reviewer_title" }} </div>
<div class="header" style="text-transform: none;font-size:16px;"> {{ .i18n .Tr "repo.issues.new.add_reviewer_title" }} </div>
{{ if .Reviewers }}
{{ if .Reviewers }}
@ -95,12 +95,12 @@
{{ end }}
{{ end }}
<div class="ui {{ if or ( not .HasIssuesOrPullsWritePermission ) .Repository .IsArchived }} disabled {{ end }} floating jump select-label dropdown">
<div class="ui {{ if or ( not .HasIssuesOrPullsWritePermission ) .Repository .IsArchived }} disabled {{ end }} floating jump select-label dropdown">
<sp an class="text">
<a class="text df ac muted ">
<strong> {{ .i18n .Tr "repo.issues.new.labels" }} </strong>
<strong> {{ .i18n .Tr "repo.issues.new.labels" }} </strong>
{{ if and .HasIssuesOrPullsWritePermission ( not .Repository .IsArchived ) }}
{{ if and .HasIssuesOrPullsWritePermission ( not .Repository .IsArchived ) }}
{{ svg "octicon-gear" }}
{{ svg "octicon-gear" 1 6 "ml-2" }}
{{ end }}
{{ end }}
</sp an >
</a>
<div class="filter menu" data-action="update" data-issue-id=" {{ $ .Issue .ID }} " data-update-url=" {{ $ .RepoLink }} /issues/labels">
<div class="filter menu" data-action="update" data-issue-id=" {{ $ .Issue .ID }} " data-update-url=" {{ $ .RepoLink }} /issues/labels">
<div class="header" style="text-transform: none;font-size:16px;"> {{ .i18n .Tr "repo.issues.new.add_labels_title" }} </div>
<div class="header" style="text-transform: none;font-size:16px;"> {{ .i18n .Tr "repo.issues.new.add_labels_title" }} </div>
{{ if or .Labels .OrgLabels }}
{{ if or .Labels .OrgLabels }}
@ -130,12 +130,12 @@
<div class="ui divider"></div>
<div class="ui divider"></div>
<div class="ui {{ if or ( not .HasIssuesOrPullsWritePermission ) .Repository .IsArchived }} disabled {{ end }} floating jump select-milestone dropdown">
<div class="ui {{ if or ( not .HasIssuesOrPullsWritePermission ) .Repository .IsArchived }} disabled {{ end }} floating jump select-milestone dropdown">
<sp an class="text">
<a class="text df ac muted ">
<strong> {{ .i18n .Tr "repo.issues.new.milestone" }} </strong>
<strong> {{ .i18n .Tr "repo.issues.new.milestone" }} </strong>
{{ if and .HasIssuesOrPullsWritePermission ( not .Repository .IsArchived ) }}
{{ if and .HasIssuesOrPullsWritePermission ( not .Repository .IsArchived ) }}
{{ svg "octicon-gear" }}
{{ svg "octicon-gear" 1 6 "ml-2" }}
{{ end }}
{{ end }}
</sp an >
</a>
<div class="menu" data-action="update" data-issue-id=" {{ $ .Issue .ID }} " data-update-url=" {{ $ .RepoLink }} /issues/milestone">
<div class="menu" data-action="update" data-issue-id=" {{ $ .Issue .ID }} " data-update-url=" {{ $ .RepoLink }} /issues/milestone">
<div class="header" style="text-transform: none;font-size:16px;"> {{ .i18n .Tr "repo.issues.new.add_milestone_title" }} </div>
<div class="header" style="text-transform: none;font-size:16px;"> {{ .i18n .Tr "repo.issues.new.add_milestone_title" }} </div>
{{ if or .OpenMilestones .ClosedMilestones }}
{{ if or .OpenMilestones .ClosedMilestones }}
@ -193,12 +193,12 @@
<div class="ui divider"></div>
<div class="ui divider"></div>
<div class="ui {{ if or ( not .HasIssuesOrPullsWritePermission ) .Repository .IsArchived }} disabled {{ end }} floating jump select-project dropdown">
<div class="ui {{ if or ( not .HasIssuesOrPullsWritePermission ) .Repository .IsArchived }} disabled {{ end }} floating jump select-project dropdown">
<sp an class="text">
<a class="text df ac muted ">
<strong> {{ .i18n .Tr "repo.issues.new.projects" }} </strong>
<strong> {{ .i18n .Tr "repo.issues.new.projects" }} </strong>
{{ if and .HasIssuesOrPullsWritePermission ( not .Repository .IsArchived ) }}
{{ if and .HasIssuesOrPullsWritePermission ( not .Repository .IsArchived ) }}
{{ svg "octicon-gear" }}
{{ svg "octicon-gear" 1 6 "ml-2" }}
{{ end }}
{{ end }}
</sp an >
</a>
<div class="menu" data-action="update" data-issue-id=" {{ $ .Issue .ID }} " data-update-url=" {{ $ .RepoLink }} /issues/projects">
<div class="menu" data-action="update" data-issue-id=" {{ $ .Issue .ID }} " data-update-url=" {{ $ .RepoLink }} /issues/projects">
<div class="no-select item"> {{ .i18n .Tr "repo.issues.new.clear_projects" }} </div>
<div class="no-select item"> {{ .i18n .Tr "repo.issues.new.clear_projects" }} </div>
{{ if .OpenProjects }}
{{ if .OpenProjects }}
@ -244,12 +244,12 @@
<input id="assignee_id" name="assignee_id" type="hidden" value=" {{ .assignee_id }} ">
<input id="assignee_id" name="assignee_id" type="hidden" value=" {{ .assignee_id }} ">
<div class="ui {{ if or ( not .HasIssuesOrPullsWritePermission ) .Repository .IsArchived }} disabled {{ end }} floating jump select-assignees-modify dropdown">
<div class="ui {{ if or ( not .HasIssuesOrPullsWritePermission ) .Repository .IsArchived }} disabled {{ end }} floating jump select-assignees-modify dropdown">
<sp an class="text">
<a class="text df ac muted ">
<strong> {{ .i18n .Tr "repo.issues.new.assignees" }} </strong>
<strong> {{ .i18n .Tr "repo.issues.new.assignees" }} </strong>
{{ if and .HasIssuesOrPullsWritePermission ( not .Repository .IsArchived ) }}
{{ if and .HasIssuesOrPullsWritePermission ( not .Repository .IsArchived ) }}
{{ svg "octicon-gear" }}
{{ svg "octicon-gear" 1 6 "ml-2" }}
{{ end }}
{{ end }}
</sp an >
</a>
<div class="filter menu" data-action="update" data-issue-id=" {{ $ .Issue .ID }} " data-update-url=" {{ $ .RepoLink }} /issues/assignee">
<div class="filter menu" data-action="update" data-issue-id=" {{ $ .Issue .ID }} " data-update-url=" {{ $ .RepoLink }} /issues/assignee">
<div class="header" style="text-transform: none;font-size:16px;"> {{ .i18n .Tr "repo.issues.new.add_assignees_title" }} </div>
<div class="header" style="text-transform: none;font-size:16px;"> {{ .i18n .Tr "repo.issues.new.add_assignees_title" }} </div>
<div class="ui icon search input">
<div class="ui icon search input">
@ -312,12 +312,12 @@
<form method="POST" action=" {{ $ .RepoLink }} /issues/ {{ .Issue .Index }} /watch">
<form method="POST" action=" {{ $ .RepoLink }} /issues/ {{ .Issue .Index }} /watch">
<input type="hidden" name="watch" value=" {{ if $ .IssueWatch .IsWatching }} 0 {{ else }} 1 {{ end }} " />
<input type="hidden" name="watch" value=" {{ if $ .IssueWatch .IsWatching }} 0 {{ else }} 1 {{ end }} " />
{{ $ .CsrfTokenHtml }}
{{ $ .CsrfTokenHtml }}
<button class="fluid ui button">
<button class="fluid ui button df jc ">
{{ if $ .IssueWatch .IsWatching }}
{{ if $ .IssueWatch .IsWatching }}
{{ svg "octicon-mute" }}
{{ svg "octicon-mute" 1 6 "mr-3" }}
{{ .i18n .Tr "repo.issues.unsubscribe" }}
{{ .i18n .Tr "repo.issues.unsubscribe" }}
{{ else }}
{{ else }}
{{ svg "octicon-unmute" }}
{{ svg "octicon-unmute" 1 6 "mr-3" }}
{{ .i18n .Tr "repo.issues.subscribe" }}
{{ .i18n .Tr "repo.issues.subscribe" }}
{{ end }}
{{ end }}
</button>
</button>
@ -338,34 +338,30 @@
{{ $ .CsrfTokenHtml }}
{{ $ .CsrfTokenHtml }}
</form>
</form>
{{ if $ .IsStopwatchRunning }}
{{ if $ .IsStopwatchRunning }}
<div class="ui buttons fluid">
<button class="ui fluid button issue-stop-time"> {{ .i18n .Tr "repo.issues.stop_tracking" }} </button>
<button class="ui button issue-stop-time"> {{ .i18n .Tr "repo.issues.stop_tracking" }} </button>
<button class="ui fluid negative button issue-cancel-time mt-3"> {{ .i18n .Tr "repo.issues.cancel_tracking" }} </button>
<button class="ui negative button issue-cancel-time"> {{ .i18n .Tr "repo.issues.cancel_tracking" }} </button>
</div>
{{ else }}
{{ else }}
{{ if .HasUserStopwatch }}
{{ if .HasUserStopwatch }}
<div class="ui warning message">
<div class="ui warning message">
{{ .i18n .Tr "repo.issues.tracking_already_started" .OtherStopwatchURL | Safe }}
{{ .i18n .Tr "repo.issues.tracking_already_started" .OtherStopwatchURL | Safe }}
</div>
</div>
{{ end }}
{{ end }}
<div class="ui buttons two fluid">
<button class="ui fluid button poping up issue-start-time" 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 class="ui button poping up issue-start-time" data-content=' {{ .i18n .Tr "repo.issues.start_tracking" }} ' data-position="top center" data-variation="small inverted"> {{ .i18n .Tr "repo.issues.start_tracking_short" }} </button>
<div class="ui mini modal issue-start-time-modal">
<div class="ui mini modal issue-start-time-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">
<form method="POST" id="add_time_manual_form" action=" {{ $ .RepoLink }} /issues/ {{ .Issue .Index }} /times/add" class="ui action input fluid">
<form method="POST" id="add_time_manual_form" action=" {{ $ .RepoLink }} /issues/ {{ .Issue .Index }} /times/add" class="ui action input fluid">
{{ $ .CsrfTokenHtml }}
{{ $ .CsrfTokenHtml }}
<input placeholder=' {{ .i18n .Tr "repo.issues.add_time_hours" }} ' type="number" name="hours">
<input placeholder=' {{ .i18n .Tr "repo.issues.add_time_hours" }} ' type="number" name="hours">
<input placeholder=' {{ .i18n .Tr "repo.issues.add_time_minutes" }} ' type="number" name="minutes" class="ui compact">
<input placeholder=' {{ .i18n .Tr "repo.issues.add_time_minutes" }} ' type="number" name="minutes" class="ui compact">
</form>
</form>
</div>
</div>
<div class="actions">
<div class="actions">
<div class="ui green approve button"> {{ .i18n .Tr "repo.issues.add_time_short" }} </div>
<div class="ui green approve button"> {{ .i18n .Tr "repo.issues.add_time_short" }} </div>
<div class="ui red cancel button"> {{ .i18n .Tr "repo.issues.add_time_cancel" }} </div>
<div class="ui red cancel button"> {{ .i18n .Tr "repo.issues.add_time_cancel" }} </div>
</div>
</div>
</div>
<button class="ui button green poping up issue-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>
</div>
<button class="ui fluid button green poping up issue-add-time mt-3" data-content=' {{ .i18n .Tr "repo.issues.add_time" }} ' data-position="top center" data-variation="small inverted"> {{ .i18n .Tr "repo.issues.add_time_short" }} </button>
{{ end }}
{{ end }}
</div>
</div>
</div>
</div>
@ -397,21 +393,23 @@
<span class="text"><strong> {{ .i18n .Tr "repo.issues.due_date" }} </strong></span>
<span class="text"><strong> {{ .i18n .Tr "repo.issues.due_date" }} </strong></span>
<div class="ui form" id="deadline-loader">
<div class="ui form" id="deadline-loader">
<div class="ui negative message" id="deadline-err-invalid-date" style="display: none;">
<div class="ui negative message" id="deadline-err-invalid-date" style="display: none;">
<i class="close icon"></i>
{{ svg "octicon-x" 1 6 "close icon" }}
{{ .i18n .Tr "repo.issues.due_date_invalid" }}
{{ .i18n .Tr "repo.issues.due_date_invalid" }}
</div>
</div>
{{ if ne .Issue .DeadlineUnix 0 }}
{{ if ne .Issue .DeadlineUnix 0 }}
<p>
<p>
{{ svg "octicon-calendar" }}
<div class="df sb ac">
{{ .Issue .DeadlineUnix .FormatDate }}
<div class="due-date poping up {{ if .Issue .IsOverdue }} text red {{ end }} " {{ if .Issue .IsOverdue }} data-content=" {{ .i18n .Tr "repo.issues.due_date_overdue" }} " {{ end }} >
{{ if .Issue .IsOverdue }}
{{ svg "octicon-calendar" 1 6 "mr-3" }}
<span style="color: red;"> {{ .i18n .Tr "repo.issues.due_date_overdue" }} </span>
{{ .Issue .DeadlineUnix .FormatDate }}
{{ end }}
</div>
{{ if and .HasIssuesOrPullsWritePermission ( not .Repository .IsArchived ) }}
<div>
<br/>
{{ if and .HasIssuesOrPullsWritePermission ( not .Repository .IsArchived ) }}
<a class="issue-due-edit"><i class="edit icon"></i> {{ $ .i18n .Tr "repo.issues.due_date_form_edit" }} </a> -
<a class="issue-due-edit poping up muted" data-content=" {{ $ .i18n .Tr "repo.issues.due_date_form_edit" }} "> {{ svg "octicon-pencil" 1 6 "mr-2" }} </a>
<a class="issue-due-remove"><i class="remove icon"></i> {{ $ .i18n .Tr "repo.issues.due_date_form_remove" }} </a>
<a class="issue-due-remove poping up muted" data-content=" {{ $ .i18n .Tr "repo.issues.due_date_form_remove" }} "> {{ svg "octicon-trash" }} </a>
{{ end }}
{{ end }}
</div>
</div>
</p>
</p>
{{ else }}
{{ else }}
<p><i> {{ .i18n .Tr "repo.issues.due_date_not_set" }} </i></p>
<p><i> {{ .i18n .Tr "repo.issues.due_date_not_set" }} </i></p>
@ -424,9 +422,9 @@
<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">
{{ if ne .Issue .DeadlineUnix 0 }}
{{ if ne .Issue .DeadlineUnix 0 }}
<i class="edit icon"></i>
{{ svg "octicon-pencil" }}
{{ else }}
{{ else }}
<i class="plus icon"></i>
{{ svg "octicon-plus" }}
{{ end }}
{{ end }}
</button>
</button>
</form>
</form>
@ -467,7 +465,7 @@
</div>
</div>
<div class="item-right df ac">
<div class="item-right df ac">
{{ if and $ .CanCreateIssueDependencies ( not $ .Repository .IsArchived ) }}
{{ if and $ .CanCreateIssueDependencies ( not $ .Repository .IsArchived ) }}
<a class="delete-dependency-button poping up ci" data-id=" {{ .Issue .ID }} " data-type="blocking" data-content=" {{ $ .i18n .Tr "repo.issues.dependency.remove_info" }} " data-inverted="">
<a class="delete-dependency-button poping up ci muted " data-id=" {{ .Issue .ID }} " data-type="blocking" data-content=" {{ $ .i18n .Tr "repo.issues.dependency.remove_info" }} " data-inverted="">
{{ svg "octicon-trash" 1 6 }}
{{ svg "octicon-trash" 1 6 }}
</a>
</a>
{{ end }}
{{ end }}
@ -494,7 +492,7 @@
</div>
</div>
<div class="item-right df ac">
<div class="item-right df ac">
{{ if and $ .CanCreateIssueDependencies ( not $ .Repository .IsArchived ) }}
{{ if and $ .CanCreateIssueDependencies ( not $ .Repository .IsArchived ) }}
<a class="delete-dependency-button poping up ci" data-id=" {{ .Issue .ID }} " data-type="blockedBy" data-content=" {{ $ .i18n .Tr "repo.issues.dependency.remove_info" }} " data-inverted="">
<a class="delete-dependency-button poping up ci muted " data-id=" {{ .Issue .ID }} " data-type="blockedBy" data-content=" {{ $ .i18n .Tr "repo.issues.dependency.remove_info" }} " data-inverted="">
{{ svg "octicon-trash" 1 6 }}
{{ svg "octicon-trash" 1 6 }}
</a>
</a>
{{ end }}
{{ end }}
@ -516,7 +514,7 @@
<div class="default text"> {{ .i18n .Tr "repo.issues.dependency.add" }} </div>
<div class="default text"> {{ .i18n .Tr "repo.issues.dependency.add" }} </div>
</div>
</div>
<button class="ui green icon button">
<button class="ui green icon button">
<i class="plus icon"></i>
{{ svg "octicon-plus" }}
</button>
</button>
</div>
</div>
</form>
</form>
@ -550,12 +548,12 @@
{{ end }} </p>
{{ end }} </p>
</div>
</div>
<div class="actions">
<div class="actions">
<div class="ui basic red cancel inverted button">
<div class="ui red cancel inverted button">
<i class="remove icon"></i>
{{ svg "octicon-x" }}
{{ .i18n .Tr "repo.issues.dependency.cancel" }}
{{ .i18n .Tr "repo.issues.dependency.cancel" }}
</div>
</div>
<div class="ui basic green ok inverted button">
<div class="ui green ok inverted button">
<i class="checkmark icon"></i>
{{ svg "octicon-check" }}
{{ .i18n .Tr "repo.issues.dependency.remove" }}
{{ .i18n .Tr "repo.issues.dependency.remove" }}
</div>
</div>
</div>
</div>