|
6 | 6 |
|
7 | 7 | <input id="reviewer_id" name="reviewer_id" type="hidden" value="{{.reviewer_id}}">
|
8 | 8 | <div class="ui {{if or (not .Reviewers) (not .CanChooseReviewer) .Repository.IsArchived}}disabled{{end}} floating jump select-reviewers-modify dropdown">
|
9 |
| - <span class="text"> |
| 9 | + <a class="text df ac muted"> |
10 | 10 | <strong>{{.i18n.Tr "repo.issues.review.reviewers"}}</strong>
|
11 | 11 | {{if and .CanChooseReviewer (not .Repository.IsArchived)}}
|
12 |
| - {{svg "octicon-gear"}} |
| 12 | + {{svg "octicon-gear" 16 "ml-2"}} |
13 | 13 | {{end}}
|
14 |
| - </span> |
| 14 | + </a> |
15 | 15 | <div class="filter menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/request_review">
|
16 | 16 | <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_reviewer_title"}}</div>
|
17 | 17 | {{if .Reviewers}}
|
|
95 | 95 | {{end}}
|
96 | 96 |
|
97 | 97 | <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-label dropdown">
|
98 |
| - <span class="text"> |
| 98 | + <a class="text df ac muted"> |
99 | 99 | <strong>{{.i18n.Tr "repo.issues.new.labels"}}</strong>
|
100 | 100 | {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}
|
101 |
| - {{svg "octicon-gear"}} |
| 101 | + {{svg "octicon-gear" 16 "ml-2"}} |
102 | 102 | {{end}}
|
103 |
| - </span> |
| 103 | + </a> |
104 | 104 | <div class="filter menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/labels">
|
105 | 105 | <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_labels_title"}}</div>
|
106 | 106 | {{if or .Labels .OrgLabels}}
|
|
130 | 130 | <div class="ui divider"></div>
|
131 | 131 |
|
132 | 132 | <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-milestone dropdown">
|
133 |
| - <span class="text"> |
| 133 | + <a class="text df ac muted"> |
134 | 134 | <strong>{{.i18n.Tr "repo.issues.new.milestone"}}</strong>
|
135 | 135 | {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}
|
136 |
| - {{svg "octicon-gear"}} |
| 136 | + {{svg "octicon-gear" 16 "ml-2"}} |
137 | 137 | {{end}}
|
138 |
| - </span> |
| 138 | + </a> |
139 | 139 | <div class="menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/milestone">
|
140 | 140 | <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_milestone_title"}}</div>
|
141 | 141 | {{if or .OpenMilestones .ClosedMilestones}}
|
|
193 | 193 | <div class="ui divider"></div>
|
194 | 194 |
|
195 | 195 | <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-project dropdown">
|
196 |
| - <span class="text"> |
| 196 | + <a class="text df ac muted"> |
197 | 197 | <strong>{{.i18n.Tr "repo.issues.new.projects"}}</strong>
|
198 | 198 | {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}
|
199 |
| - {{svg "octicon-gear"}} |
| 199 | + {{svg "octicon-gear" 16 "ml-2"}} |
200 | 200 | {{end}}
|
201 |
| - </span> |
| 201 | + </a> |
202 | 202 | <div class="menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/projects">
|
203 | 203 | <div class="no-select item">{{.i18n.Tr "repo.issues.new.clear_projects"}}</div>
|
204 | 204 | {{if .OpenProjects}}
|
|
244 | 244 |
|
245 | 245 | <input id="assignee_id" name="assignee_id" type="hidden" value="{{.assignee_id}}">
|
246 | 246 | <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-assignees-modify dropdown">
|
247 |
| - <span class="text"> |
| 247 | + <a class="text df ac muted"> |
248 | 248 | <strong>{{.i18n.Tr "repo.issues.new.assignees"}}</strong>
|
249 | 249 | {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}
|
250 |
| - {{svg "octicon-gear"}} |
| 250 | + {{svg "octicon-gear" 16 "ml-2"}} |
251 | 251 | {{end}}
|
252 |
| - </span> |
| 252 | + </a> |
253 | 253 | <div class="filter menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/assignee">
|
254 | 254 | <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_assignees_title"}}</div>
|
255 | 255 | <div class="ui icon search input">
|
|
312 | 312 | <form method="POST" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/watch">
|
313 | 313 | <input type="hidden" name="watch" value="{{if $.IssueWatch.IsWatching}}0{{else}}1{{end}}" />
|
314 | 314 | {{$.CsrfTokenHtml}}
|
315 |
| - <button class="fluid ui button"> |
| 315 | + <button class="fluid ui button df jc"> |
316 | 316 | {{if $.IssueWatch.IsWatching}}
|
317 |
| - {{svg "octicon-mute"}} |
| 317 | + {{svg "octicon-mute" 16 "mr-3"}} |
318 | 318 | {{.i18n.Tr "repo.issues.unsubscribe"}}
|
319 | 319 | {{else}}
|
320 |
| - {{svg "octicon-unmute"}} |
| 320 | + {{svg "octicon-unmute" 16 "mr-3"}} |
321 | 321 | {{.i18n.Tr "repo.issues.subscribe"}}
|
322 | 322 | {{end}}
|
323 | 323 | </button>
|
|
338 | 338 | {{$.CsrfTokenHtml}}
|
339 | 339 | </form>
|
340 | 340 | {{if $.IsStopwatchRunning}}
|
341 |
| - <div class="ui buttons fluid"> |
342 |
| - <button class="ui button issue-stop-time">{{.i18n.Tr "repo.issues.stop_tracking"}}</button> |
343 |
| - <button class="ui negative button issue-cancel-time">{{.i18n.Tr "repo.issues.cancel_tracking"}}</button> |
344 |
| - </div> |
| 341 | + <button class="ui fluid button issue-stop-time">{{.i18n.Tr "repo.issues.stop_tracking"}}</button> |
| 342 | + <button class="ui fluid negative button issue-cancel-time mt-3">{{.i18n.Tr "repo.issues.cancel_tracking"}}</button> |
345 | 343 | {{else}}
|
346 | 344 | {{if .HasUserStopwatch}}
|
347 | 345 | <div class="ui warning message">
|
348 | 346 | {{.i18n.Tr "repo.issues.tracking_already_started" .OtherStopwatchURL | Safe}}
|
349 | 347 | </div>
|
350 | 348 | {{end}}
|
351 |
| - <div class="ui buttons two fluid"> |
352 |
| - <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> |
353 |
| - <div class="ui mini modal issue-start-time-modal"> |
354 |
| - <div class="header">{{.i18n.Tr "repo.issues.add_time"}}</div> |
355 |
| - <div class="content"> |
356 |
| - <form method="POST" id="add_time_manual_form" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/times/add" class="ui action input fluid"> |
357 |
| - {{$.CsrfTokenHtml}} |
358 |
| - <input placeholder='{{.i18n.Tr "repo.issues.add_time_hours"}}' type="number" name="hours"> |
359 |
| - <input placeholder='{{.i18n.Tr "repo.issues.add_time_minutes"}}' type="number" name="minutes" class="ui compact"> |
360 |
| - </form> |
361 |
| - </div> |
362 |
| - <div class="actions"> |
363 |
| - <div class="ui green approve button">{{.i18n.Tr "repo.issues.add_time_short"}}</div> |
364 |
| - <div class="ui red cancel button">{{.i18n.Tr "repo.issues.add_time_cancel"}}</div> |
365 |
| - </div> |
| 349 | + <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> |
| 350 | + <div class="ui mini modal issue-start-time-modal"> |
| 351 | + <div class="header">{{.i18n.Tr "repo.issues.add_time"}}</div> |
| 352 | + <div class="content"> |
| 353 | + <form method="POST" id="add_time_manual_form" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/times/add" class="ui action input fluid"> |
| 354 | + {{$.CsrfTokenHtml}} |
| 355 | + <input placeholder='{{.i18n.Tr "repo.issues.add_time_hours"}}' type="number" name="hours"> |
| 356 | + <input placeholder='{{.i18n.Tr "repo.issues.add_time_minutes"}}' type="number" name="minutes" class="ui compact"> |
| 357 | + </form> |
| 358 | + </div> |
| 359 | + <div class="actions"> |
| 360 | + <div class="ui green approve button">{{.i18n.Tr "repo.issues.add_time_short"}}</div> |
| 361 | + <div class="ui red cancel button">{{.i18n.Tr "repo.issues.add_time_cancel"}}</div> |
366 | 362 | </div>
|
367 |
| - <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> |
368 | 363 | </div>
|
| 364 | + <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> |
369 | 365 | {{end}}
|
370 | 366 | </div>
|
371 | 367 | </div>
|
|
397 | 393 | <span class="text"><strong>{{.i18n.Tr "repo.issues.due_date"}}</strong></span>
|
398 | 394 | <div class="ui form" id="deadline-loader">
|
399 | 395 | <div class="ui negative message" id="deadline-err-invalid-date" style="display: none;">
|
400 |
| - <i class="close icon"></i> |
| 396 | + {{svg "octicon-x" 16 "close icon"}} |
401 | 397 | {{.i18n.Tr "repo.issues.due_date_invalid"}}
|
402 | 398 | </div>
|
403 | 399 | {{if ne .Issue.DeadlineUnix 0}}
|
404 | 400 | <p>
|
405 |
| - {{svg "octicon-calendar"}} |
406 |
| - {{.Issue.DeadlineUnix.FormatDate}} |
407 |
| - {{if .Issue.IsOverdue}} |
408 |
| - <span style="color: red;">{{.i18n.Tr "repo.issues.due_date_overdue"}}</span> |
409 |
| - {{end}} |
410 |
| - {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} |
411 |
| - <br/> |
412 |
| - <a class="issue-due-edit"><i class="edit icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_edit"}}</a> - |
413 |
| - <a class="issue-due-remove"><i class="remove icon"></i>{{$.i18n.Tr "repo.issues.due_date_form_remove"}}</a> |
414 |
| - {{end}} |
| 401 | + <div class="df sb ac"> |
| 402 | + <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}}> |
| 403 | + {{svg "octicon-calendar" 16 "mr-3"}} |
| 404 | + {{.Issue.DeadlineUnix.FormatDate}} |
| 405 | + </div> |
| 406 | + <div> |
| 407 | + {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} |
| 408 | + <a class="issue-due-edit poping up muted" data-content="{{$.i18n.Tr "repo.issues.due_date_form_edit"}}">{{svg "octicon-pencil" 16 "mr-2"}}</a> |
| 409 | + <a class="issue-due-remove poping up muted" data-content="{{$.i18n.Tr "repo.issues.due_date_form_remove"}}">{{svg "octicon-trash"}}</a> |
| 410 | + {{end}} |
| 411 | + </div> |
| 412 | + </div> |
415 | 413 | </p>
|
416 | 414 | {{else}}
|
417 | 415 | <p><i>{{.i18n.Tr "repo.issues.due_date_not_set"}}</i></p>
|
|
424 | 422 | <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">
|
425 | 423 | <button class="ui green icon button">
|
426 | 424 | {{if ne .Issue.DeadlineUnix 0}}
|
427 |
| - <i class="edit icon"></i> |
| 425 | + {{svg "octicon-pencil"}} |
428 | 426 | {{else}}
|
429 |
| - <i class="plus icon"></i> |
| 427 | + {{svg "octicon-plus"}} |
430 | 428 | {{end}}
|
431 | 429 | </button>
|
432 | 430 | </form>
|
|
467 | 465 | </div>
|
468 | 466 | <div class="item-right df ac">
|
469 | 467 | {{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}}
|
470 |
| - <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=""> |
| 468 | + <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=""> |
471 | 469 | {{svg "octicon-trash" 16}}
|
472 | 470 | </a>
|
473 | 471 | {{end}}
|
|
494 | 492 | </div>
|
495 | 493 | <div class="item-right df ac">
|
496 | 494 | {{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}}
|
497 |
| - <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=""> |
| 495 | + <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=""> |
498 | 496 | {{svg "octicon-trash" 16}}
|
499 | 497 | </a>
|
500 | 498 | {{end}}
|
|
516 | 514 | <div class="default text">{{.i18n.Tr "repo.issues.dependency.add"}}</div>
|
517 | 515 | </div>
|
518 | 516 | <button class="ui green icon button">
|
519 |
| - <i class="plus icon"></i> |
| 517 | + {{svg "octicon-plus"}} |
520 | 518 | </button>
|
521 | 519 | </div>
|
522 | 520 | </form>
|
|
550 | 548 | {{end}}</p>
|
551 | 549 | </div>
|
552 | 550 | <div class="actions">
|
553 |
| - <div class="ui basic red cancel inverted button"> |
554 |
| - <i class="remove icon"></i> |
| 551 | + <div class="ui red cancel inverted button"> |
| 552 | + {{svg "octicon-x"}} |
555 | 553 | {{.i18n.Tr "repo.issues.dependency.cancel"}}
|
556 | 554 | </div>
|
557 |
| - <div class="ui basic green ok inverted button"> |
558 |
| - <i class="checkmark icon"></i> |
| 555 | + <div class="ui green ok inverted button"> |
| 556 | + {{svg "octicon-check"}} |
559 | 557 | {{.i18n.Tr "repo.issues.dependency.remove"}}
|
560 | 558 | </div>
|
561 | 559 | </div>
|
|
0 commit comments