|
5 | 5 | {{if .Issue.IsPull}}
|
6 | 6 |
|
7 | 7 | <input id="reviewer_id" name="reviewer_id" type="hidden" value="{{.reviewer_id}}">
|
8 |
| - <div class="ui {{if or (not .Reviewers) (not .CanChooseReviewer) .Repository.IsArchived}}disabled{{end}} floating jump select-reviewers-modify dropdown"> |
| 8 | + <div class="ui {{if or (not .Reviewers) (not .CanChooseReviewer) .Repository.IsArchived}}disabled{{end}} floating jump select-reviewers-modify dropdown" aria-label="{{.locale.Tr "repo.issues.review.reviewers"}}"> |
9 | 9 | <a class="text gt-df gt-ac muted">
|
10 | 10 | <strong>{{.locale.Tr "repo.issues.review.reviewers"}}</strong>
|
11 | 11 | {{if and .CanChooseReviewer (not .Repository.IsArchived)}}
|
|
17 | 17 | {{if .Reviewers}}
|
18 | 18 | <div class="ui icon search input">
|
19 | 19 | <i class="icon gt-df gt-ac gt-jc">{{svg "octicon-search" 16}}</i>
|
20 |
| - <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_reviewers"}}"> |
| 20 | + <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_reviewers"}}" aria-label="{{.locale.Tr "repo.issues.filter_reviewers"}}"> |
21 | 21 | </div>
|
22 | 22 | {{end}}
|
23 | 23 | {{if .Reviewers}}
|
|
110 | 110 |
|
111 | 111 | <div class="ui divider"></div>
|
112 | 112 |
|
113 |
| - <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-milestone dropdown"> |
| 113 | + <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-milestone dropdown" aria-label="{{.locale.Tr "repo.issues.new.milestone"}}"> |
114 | 114 | <a class="text gt-df gt-ac muted">
|
115 | 115 | <strong>{{.locale.Tr "repo.issues.new.milestone"}}</strong>
|
116 | 116 | {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}
|
|
122 | 122 | {{if or .OpenMilestones .ClosedMilestones}}
|
123 | 123 | <div class="ui icon search input">
|
124 | 124 | <i class="icon gt-df gt-ac gt-jc">{{svg "octicon-search" 16}}</i>
|
125 |
| - <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_milestones"}}"> |
| 125 | + <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_milestones"}}" aria-label="{{.locale.Tr "repo.issues.filter_milestones"}}"> |
126 | 126 | </div>
|
127 | 127 | {{end}}
|
128 | 128 | <div class="no-select item">{{.locale.Tr "repo.issues.new.clear_milestone"}}</div>
|
|
173 | 173 | {{if .IsProjectsEnabled}}
|
174 | 174 | <div class="ui divider"></div>
|
175 | 175 |
|
176 |
| - <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-project dropdown"> |
| 176 | + <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-project dropdown" aria-label="{{.locale.Tr "repo.issues.new.projects"}}"> |
177 | 177 | <a class="text gt-df gt-ac muted">
|
178 | 178 | <strong>{{.locale.Tr "repo.issues.new.projects"}}</strong>
|
179 | 179 | {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}
|
|
185 | 185 | {{if or .OpenProjects .ClosedProjects}}
|
186 | 186 | <div class="ui icon search input">
|
187 | 187 | <i class="icon gt-df gt-ac gt-jc">{{svg "octicon-search" 16}}</i>
|
188 |
| - <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_projects"}}"> |
| 188 | + <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_projects"}}" aria-label="{{.locale.Tr "repo.issues.filter_projects"}}"> |
189 | 189 | </div>
|
190 | 190 | {{end}}
|
191 | 191 | <div class="no-select item">{{.locale.Tr "repo.issues.new.clear_projects"}}</div>
|
|
231 | 231 | <div class="ui divider"></div>
|
232 | 232 |
|
233 | 233 | <input id="assignee_id" name="assignee_id" type="hidden" value="{{.assignee_id}}">
|
234 |
| - <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-assignees-modify dropdown"> |
| 234 | + <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-assignees-modify dropdown" aria-label="{{.locale.Tr "repo.issues.new.assignees"}}"> |
235 | 235 | <a class="text gt-df gt-ac muted">
|
236 | 236 | <strong>{{.locale.Tr "repo.issues.new.assignees"}}</strong>
|
237 | 237 | {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}
|
|
242 | 242 | <div class="header" style="text-transform: none;font-size:16px;">{{.locale.Tr "repo.issues.new.add_assignees_title"}}</div>
|
243 | 243 | <div class="ui icon search input">
|
244 | 244 | <i class="icon gt-df gt-ac gt-jc">{{svg "octicon-search" 16}}</i>
|
245 |
| - <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_assignees"}}"> |
| 245 | + <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_assignees"}}" aria-label="{{.locale.Tr "repo.issues.filter_assignees"}}"> |
246 | 246 | </div>
|
247 | 247 | <div class="no-select item">{{.locale.Tr "repo.issues.new.clear_assignees"}}</div>
|
248 | 248 | {{range .Assignees}}
|
|
407 | 407 | <form class="ui fluid action input issue-due-form" action="{{AppSubUrl}}/{{PathEscape .Repository.Owner.Name}}/{{PathEscape .Repository.Name}}/issues/{{.Issue.Index}}/deadline" method="post" id="update-issue-deadline-form">
|
408 | 408 | {{$.CsrfTokenHtml}}
|
409 | 409 | <input required placeholder="{{.locale.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">
|
410 |
| - <button class="ui green icon button"> |
| 410 | + <button class="ui green icon button" aria-label="{{if ne .Issue.DeadlineUnix 0}}{{$.locale.Tr "repo.issues.due_date_form_edit"}}{{else}}{{$.locale.Tr "repo.issues.due_date_form_add"}}{{end}}"> |
411 | 411 | {{if ne .Issue.DeadlineUnix 0}}
|
412 | 412 | {{svg "octicon-pencil"}}
|
413 | 413 | {{else}}
|
|
479 | 479 | </div>
|
480 | 480 | <div class="item-right gt-df gt-ac">
|
481 | 481 | {{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}}
|
482 |
| - <a class="delete-dependency-button tooltip ci muted" data-id="{{.Issue.ID}}" data-type="blockedBy" data-content="{{$.locale.Tr "repo.issues.dependency.remove_info"}}" data-inverted=""> |
| 482 | + <button class="delete-dependency-button tooltip ci" data-id="{{.Issue.ID}}" data-type="blockedBy" data-content="{{$.locale.Tr "repo.issues.dependency.remove_info"}}" data-inverted=""> |
483 | 483 | {{svg "octicon-trash" 16}}
|
484 |
| - </a> |
| 484 | + </button> |
485 | 485 | {{end}}
|
486 | 486 | </div>
|
487 | 487 | </div>
|
|
494 | 494 | <form method="POST" action="{{.Issue.Link}}/dependency/add" id="addDependencyForm">
|
495 | 495 | {{$.CsrfTokenHtml}}
|
496 | 496 | <div class="ui fluid action input">
|
497 |
| - <div class="ui search selection dropdown" id="new-dependency-drop-list" data-issue-id="{{.Issue.ID}}"> |
| 497 | + <div class="ui search selection dropdown" id="new-dependency-drop-list" data-issue-id="{{.Issue.ID}}" aria-label="{{.locale.Tr "repo.issues.dependency.add"}}"> |
498 | 498 | <input name="newDependency" type="hidden">
|
499 | 499 | {{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
500 |
| - <input type="text" class="search"> |
| 500 | + <input type="text" class="search" aria-label="{{.locale.Tr "repo.issues.dependency.add"}}"> |
501 | 501 | <div class="default text">{{.locale.Tr "repo.issues.dependency.add"}}</div>
|
502 | 502 | </div>
|
503 |
| - <button class="ui green icon button"> |
| 503 | + <button class="ui green icon button" aria-label="{{$.locale.Tr "repo.issues.dependency.add"}}"> |
504 | 504 | {{svg "octicon-plus"}}
|
505 | 505 | </button>
|
506 | 506 | </div>
|
|
548 | 548 | {{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
|
549 | 549 | <div class="row gt-ac tooltip" data-content="{{$issueReferenceLink}}">
|
550 | 550 | <span class="text column truncate">{{.locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
|
551 |
| - <button class="ui two wide button column gt-p-3" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button> |
| 551 | + <button class="ui two wide button column gt-p-3" data-clipboard-text="{{$issueReferenceLink}}" title="{{.locale.Tr "repo.issues.reference_button"}}">{{svg "octicon-copy" 14}}</button> |
552 | 552 | </div>
|
553 | 553 | </div>
|
554 | 554 |
|
|
0 commit comments