Skip to content

Commit 1b86d3d

Browse files
authored
fix dorpdown & comments (go-gitea#3)
* fix dorpdown menue * fix project-change-comments
1 parent 338e8bb commit 1b86d3d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,7 @@ issues.label_templates.fail_to_load_file = Failed to load label template file '%
855855
issues.add_label_at = added the <div class="ui label has-emoji" style="color: %s\; background-color: %s">%s</div> label %s
856856
issues.remove_label_at = removed the <div class="ui label has-emoji" style="color: %s\; background-color: %s">%s</div> label %s
857857
issues.add_milestone_at = `added this to the <b>%s</b> milestone %s`
858+
issues.add_project_at = `added this to the <b>%s</b> project %s`
858859
issues.change_milestone_at = `modified the milestone from <b>%s</b> to <b>%s</b> %s`
859860
issues.change_project_at = `modified the project from <b>%s</b> to <b>%s</b> %s`
860861
issues.remove_milestone_at = `removed this from the <b>%s</b> milestone %s`

templates/repo/issue/view_content/comments.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
13 = STOP_TRACKING, 14 = ADD_TIME_MANUAL, 16 = ADDED_DEADLINE, 17 = MODIFIED_DEADLINE,
88
18 = REMOVED_DEADLINE, 19 = ADD_DEPENDENCY, 20 = REMOVE_DEPENDENCY, 21 = CODE,
99
22 = REVIEW, 23 = ISSUE_LOCKED, 24 = ISSUE_UNLOCKED, 25 = TARGET_BRANCH_CHANGED,
10-
26 = DELETE_TIME_MANUAL, 27 = PROJECT BOARD CHANGED -->
10+
26 = DELETE_TIME_MANUAL, 27 = PROJECT_CHANGED, 28 = Project_Board_CHANGED -->
1111
{{if eq .Type 0}}
1212
<div class="comment" id="{{.HashTag}}">
1313
{{if .OriginalAuthor }}
@@ -448,10 +448,10 @@
448448
{{$.i18n.Tr "repo.issues.change_project_at" (.OldProject.Title|Escape) (.Project.Title|Escape) $createdStr | Safe}}
449449

450450
{{else}}
451-
{{$.i18n.Tr "repo.issues.remove_milestone_at" (.OldProject.Title|Escape) $createdStr | Safe}}
451+
{{$.i18n.Tr "repo.issues.remove_project_at" (.OldProject.Title|Escape) $createdStr | Safe}}
452452
{{end}}
453453
{{else if gt .ProjectID 0}}
454-
{{$.i18n.Tr "repo.issues.add_milestone_at" (.Project.Title|Escape) $createdStr | Safe}}
454+
{{$.i18n.Tr "repo.issues.add_project_at" (.Project.Title|Escape) $createdStr | Safe}}
455455
{{end}}
456456
</span>
457457
</div>

web_src/js/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,8 @@ function initCommentForm() {
509509
});
510510
}
511511

512-
// Milestone and assignee
512+
// Milestone, Assignee, Project
513+
selectItem('.select-project', '#project_id');
513514
selectItem('.select-milestone', '#milestone_id');
514515
selectItem('.select-assignee', '#assignee_id');
515516
}

0 commit comments

Comments
 (0)