File tree Expand file tree Collapse file tree 5 files changed +13
-10
lines changed Expand file tree Collapse file tree 5 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -3320,6 +3320,7 @@ self_check.database_collation_case_insensitive=数据库正在使用一个校验
3320
3320
self_check.database_inconsistent_collation_columns =数据库正在使用%s的排序规则,但是这些列使用了不匹配的排序规则。这可能会造成一些意外问题。
3321
3321
self_check.database_fix_mysql =对于MySQL/MariaDB用户,您可以使用“gitea doctor convert”命令来解决校验问题。 或者您也可以通过 " ALTER ... COLLATE ..." 这样的SQL 来手动解决这个问题。
3322
3322
self_check.database_fix_mssql =对于MSSQL用户,您现在只能通过" ALTER ... COLLATE ..." SQLs手动解决这个问题。
3323
+ self_check.location_origin_mismatch =当前 URL (%[1]s) 与 Gitea 的 URL (%[2]s) 不匹配 。 如果您正在使用反向代理,请确保设置正确的“主机”和“X-转发-原始”标题。
3323
3324
3324
3325
[action]
3325
3326
create_repo =创建了仓库 <a href =" %s" >%s</a>
@@ -3347,6 +3348,7 @@ mirror_sync_create=从镜像同步了引用 <a href="%[2]s">%[3]s</a> 至仓库
3347
3348
mirror_sync_delete =从镜像同步并从 <a href =" %[1]s" >%[3]s</a> 删除了引用 <code>%[2]s</code>
3348
3349
approve_pull_request =`批准了 <a href =" %[1]s" >%[3]s# %[2]s</a>`
3349
3350
reject_pull_request =`建议变更 <a href =" %[1]s" >%[3]s# %[2]s</a>`
3351
+ publish_release =`在 <a href =" %[1]s" >%[3]s</a> 发布了 <a href =" %[2]s" > %[4]s </a>`
3350
3352
review_dismissed =`取消了 <b>%[4]s</b> 对 <a href =" %[1]s" >%[3]s# %[2]s</a> 的变更请求`
3351
3353
review_dismissed_reason =原因:
3352
3354
create_branch =于 <a href =" %[1]s" >%[4]s</a> 创建了分支 <a href =" %[2]s" >%[3]s</a>
Original file line number Diff line number Diff line change 26
26
</div>
27
27
<div class="issue-title-buttons">
28
28
<button class="ui small basic cancel button">{{ctx.Locale.Tr "repo.issues.cancel"}}</button>
29
- <button class="ui small primary button"
30
- data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/title"
31
- {{if .Issue.IsPull}}data-target-update-url="{{$.RepoLink}}/pull/{{.Issue.Index}}/target_branch"{{end}}>
29
+ <button class="ui small primary button" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/title">
32
30
{{ctx.Locale.Tr "repo.issues.save"}}
33
31
</button>
34
32
</div>
77
75
{{ctx.Locale.Tr "repo.pulls.title_desc" .NumCommits $headHref $baseHref}}
78
76
</span>
79
77
{{end}}
80
- <span id="pull-desc-editor" class="tw-hidden flex-text-block">
78
+ <span id="pull-desc-editor" class="tw-hidden flex-text-block" data-target-update-url="{{$.RepoLink}}/pull/{{.Issue.Index}}/target_branch" >
81
79
<div class="ui floating filter dropdown">
82
80
<div class="ui basic small button tw-mr-0">
83
81
<span class="text">{{ctx.Locale.Tr "repo.pulls.compare_compare"}}: {{$.HeadTarget}}</span>
Original file line number Diff line number Diff line change 28
28
<div class="field">
29
29
<div class="ui checkbox {{if .Err_IsWritable}}error{{end}}">
30
30
<input id="ssh-key-is-writable" name="is_writable" type="checkbox" value="1">
31
- <label for="is_writable ">
31
+ <label for="ssh-key-is-writable ">
32
32
{{ctx.Locale.Tr "repo.settings.is_writable"}}
33
33
</label>
34
34
<small class="tw-pl-[26px]">{{ctx.Locale.Tr "repo.settings.is_writable_info"}}</small>
Original file line number Diff line number Diff line change @@ -626,9 +626,12 @@ export function initRepoIssueTitleEdit() {
626
626
showElem ( issueTitleDisplay ) ;
627
627
showElem ( '#pull-desc-display' ) ;
628
628
} ) ;
629
+
630
+ const pullDescEditor = document . querySelector ( '#pull-desc-editor' ) ; // it may not exist for a merged PR
631
+ const prTargetUpdateUrl = pullDescEditor ?. getAttribute ( 'data-target-update-url' ) ;
632
+
629
633
const editSaveButton = issueTitleEditor . querySelector ( '.ui.primary.button' ) ;
630
634
editSaveButton . addEventListener ( 'click' , async ( ) => {
631
- const prTargetUpdateUrl = editSaveButton . getAttribute ( 'data-target-update-url' ) ;
632
635
const newTitle = issueTitleInput . value . trim ( ) ;
633
636
try {
634
637
if ( newTitle && newTitle !== oldTitle ) {
You can’t perform that action at this time.
0 commit comments