Skip to content

Commit 8998dea

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: Fix the description about the default setting for action in quick start document (go-gitea#28160) Do not display search box when there's no packages yet (go-gitea#28146) Add guide page to actions when there's no workflows (go-gitea#28145) Fix no ActionTaskOutput table waring (go-gitea#28149) Fix empty action run title (go-gitea#28113) Use "is-loading" to avoid duplicate form submit for code comment (go-gitea#28143) Fix typo in `packages.cleanup.success` (go-gitea#28133) Add edit option for README.md (go-gitea#28071) Remove autofocus in search box (go-gitea#28033) Add missing `packages.cleanup.success` (go-gitea#28129) Update docs for docusaurus v3 (go-gitea#28125)
2 parents a44608a + 2d9b91a commit 8998dea

File tree

28 files changed

+84
-44
lines changed

28 files changed

+84
-44
lines changed

docs/content/administration/config-cheat-sheet.en-us.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
343343
- `SSH_AUTHORIZED_PRINCIPALS_ALLOW`: **off** or **username, email**: \[off, username, email, anything\]: Specify the principals values that users are allowed to use as principal. When set to `anything` no checks are done on the principal string. When set to `off` authorized principal are not allowed to be set.
344344
- `SSH_CREATE_AUTHORIZED_PRINCIPALS_FILE`: **false/true**: Gitea will create a authorized_principals file by default when it is not using the internal ssh server and `SSH_AUTHORIZED_PRINCIPALS_ALLOW` is not `off`.
345345
- `SSH_AUTHORIZED_PRINCIPALS_BACKUP`: **false/true**: Enable SSH Authorized Principals Backup when rewriting all keys, default is true if `SSH_AUTHORIZED_PRINCIPALS_ALLOW` is not `off`.
346-
- `SSH_AUTHORIZED_KEYS_COMMAND_TEMPLATE`: **{{.AppPath}} --config={{.CustomConf}} serv key-{{.Key.ID}}**: Set the template for the command to passed on authorized keys. Possible keys are: AppPath, AppWorkPath, CustomConf, CustomPath, Key - where Key is a `models/asymkey.PublicKey` and the others are strings which are shellquoted.
346+
- `SSH_AUTHORIZED_KEYS_COMMAND_TEMPLATE`: **`{{.AppPath}} --config={{.CustomConf}} serv key-{{.Key.ID}}`**: Set the template for the command to passed on authorized keys. Possible keys are: AppPath, AppWorkPath, CustomConf, CustomPath, Key - where Key is a `models/asymkey.PublicKey` and the others are strings which are shellquoted.
347347
- `SSH_SERVER_CIPHERS`: **[email protected], aes128-ctr, aes192-ctr, aes256-ctr, [email protected], [email protected]**: For the built-in SSH server, choose the ciphers to support for SSH connections, for system SSH this setting has no effect.
348348
- `SSH_SERVER_KEY_EXCHANGES`: **curve25519-sha256, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group14-sha256, diffie-hellman-group14-sha1**: For the built-in SSH server, choose the key exchange algorithms to support for SSH connections, for system SSH this setting has no effect.
349349
- `SSH_SERVER_MACS`: **[email protected], hmac-sha2-256, hmac-sha1**: For the built-in SSH server, choose the MACs to support for SSH connections, for system SSH this setting has no effect
@@ -1406,7 +1406,7 @@ Please note that using `self` is not recommended for most cases, as it could mak
14061406
Additionally, it requires you to mirror all the actions you need to your Gitea instance, which may not be worth it.
14071407
Therefore, please use `self` only if you understand what you are doing.
14081408

1409-
In earlier versions (<= 1.19), `DEFAULT_ACTIONS_URL` could be set to any custom URLs like `https://gitea.com` or `http://your-git-server,https://gitea.com`, and the default value was `https://gitea.com`.
1409+
In earlier versions (`<= 1.19`), `DEFAULT_ACTIONS_URL` could be set to any custom URLs like `https://gitea.com` or `http://your-git-server,https://gitea.com`, and the default value was `https://gitea.com`.
14101410
However, later updates removed those options, and now the only options are `github` and `self`, with the default value being `github`.
14111411
However, if you want to use actions from other git server, you can use a complete URL in `uses` field, it's supported by Gitea (but not GitHub).
14121412
Like `uses: https://gitea.com/actions/checkout@v3` or `uses: http://your-git-server/actions/checkout@v3`.

docs/content/administration/config-cheat-sheet.zh-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ menu:
335335
- `SSH_AUTHORIZED_PRINCIPALS_ALLOW`: **off****username, email**\[off, username, email, anything\]:指定允许用户用作 principal 的值。当设置为 `anything` 时,对 principal 字符串不执行任何检查。当设置为 `off` 时,不允许设置授权的 principal。
336336
- `SSH_CREATE_AUTHORIZED_PRINCIPALS_FILE`: **false/true**:当 Gitea 不使用内置 SSH 服务器且 `SSH_AUTHORIZED_PRINCIPALS_ALLOW` 不为 `off` 时,默认情况下 Gitea 会创建一个 authorized_principals 文件。
337337
- `SSH_AUTHORIZED_PRINCIPALS_BACKUP`: **false/true**:在重写所有密钥时启用 SSH 授权 principal 备份,默认值为 true(如果 `SSH_AUTHORIZED_PRINCIPALS_ALLOW` 不为 `off`)。
338-
- `SSH_AUTHORIZED_KEYS_COMMAND_TEMPLATE`: **{{.AppPath}} --config={{.CustomConf}} serv key-{{.Key.ID}}**:设置用于传递授权密钥的命令模板。可能的密钥是:AppPath、AppWorkPath、CustomConf、CustomPath、Key,其中 Key 是 `models/asymkey.PublicKey`,其他是 shellquoted 字符串。
338+
- `SSH_AUTHORIZED_KEYS_COMMAND_TEMPLATE`: **`{{.AppPath}} --config={{.CustomConf}} serv key-{{.Key.ID}}`**:设置用于传递授权密钥的命令模板。可能的密钥是:AppPath、AppWorkPath、CustomConf、CustomPath、Key,其中 Key 是 `models/asymkey.PublicKey`,其他是 shellquoted 字符串。
339339
- `SSH_SERVER_CIPHERS`: **[email protected], aes128-ctr, aes192-ctr, aes256-ctr, [email protected], [email protected]**:对于内置的 SSH 服务器,选择支持的 SSH 连接的加密方法,对于系统 SSH,此设置无效。
340340
- `SSH_SERVER_KEY_EXCHANGES`: **curve25519-sha256, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group14-sha256, diffie-hellman-group14-sha1**:对于内置 SSH 服务器,选择支持的 SSH 连接的密钥交换算法,对于系统 SSH,此设置无效。
341341
- `SSH_SERVER_MACS`: **[email protected], hmac-sha2-256, hmac-sha1**:对于内置 SSH 服务器,选择支持的 SSH 连接的 MAC 算法,对于系统 SSH,此设置无效。
@@ -1343,7 +1343,7 @@ PROXY_HOSTS = *.github.com
13431343
此外,它要求您将所有所需的操作镜像到您的 Gitea 实例,这可能不值得。
13441344
因此,请仅在您了解自己在做什么的情况下使用 `self`
13451345

1346-
在早期版本(<= 1.19)中,`DEFAULT_ACTIONS_URL` 可以设置为任何自定义 URL,例如 `https://gitea.com``http://your-git-server,https://gitea.com`,默认值为 `https://gitea.com`
1346+
在早期版本(`<= 1.19`)中,`DEFAULT_ACTIONS_URL` 可以设置为任何自定义 URL,例如 `https://gitea.com``http://your-git-server,https://gitea.com`,默认值为 `https://gitea.com`
13471347
然而,后来的更新删除了这些选项,现在唯一的选项是 `github``self`,默认值为 `github`
13481348
但是,如果您想要使用其他 Git 服务器中的操作,您可以在 `uses` 字段中使用完整的 URL,Gitea 支持此功能(GitHub 不支持)。
13491349
例如 `uses: https://gitea.com/actions/checkout@v3``uses: http://your-git-server/actions/checkout@v3`

docs/content/help/faq.en-us.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ All Gitea instances have the built-in API and there is no way to disable it comp
138138
You can, however, disable showing its documentation by setting `ENABLE_SWAGGER` to `false` in the `api` section of your `app.ini`.
139139
For more information, refer to Gitea's [API docs](development/api-usage.md).
140140

141-
You can see the latest API (for example) on <https://try.gitea.io/api/swagger>.
141+
You can see the latest API (for example) on https://try.gitea.io/api/swagger
142142

143-
You can also see an example of the `swagger.json` file at <https://try.gitea.io/swagger.v1.json>.
143+
You can also see an example of the `swagger.json` file at https://try.gitea.io/swagger.v1.json
144144

145145
## Adjusting your server for public/private use
146146

docs/content/help/faq.zh-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ Gitea不提供内置的Pages服务器。您需要一个专用的域名来提供
142142
但是,您可以在app.ini的api部分将ENABLE_SWAGGER设置为false,以禁用其文档显示。
143143
有关更多信息,请参阅Gitea的[API文档](development/api-usage.md)
144144

145-
您可以在上查看最新的API(例如)<https://try.gitea.io/api/swagger>
145+
您可以在上查看最新的API(例如)https://try.gitea.io/api/swagger
146146

147-
您还可以在上查看`swagger.json`文件的示例 <https://try.gitea.io/swagger.v1.json>
147+
您还可以在上查看`swagger.json`文件的示例 https://try.gitea.io/swagger.v1.json
148148

149149
## 调整服务器用于公共/私有使用
150150

docs/content/usage/actions/comparison.en-us.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ Pre and Post steps don't have their own section in the job log user interface.
116116

117117
Previously (Pre 1.21.0), `[actions].DEFAULT_ACTIONS_URL` defaulted to `https://gitea.com`.
118118
We have since restricted this option to only allow two values (`github` and `self`).
119-
When set to `github`, the new default, Gitea will download non-fully-qualified actions from <https://github.com>.
120-
For example, if you use `uses: actions/checkout@v3`, it will download the checkout repository from <https://github.com/actions/checkout.git>.
119+
When set to `github`, the new default, Gitea will download non-fully-qualified actions from `https://github.com`.
120+
For example, if you use `uses: actions/checkout@v3`, it will download the checkout repository from `https://github.com/actions/checkout.git`.
121121

122122
If you want to download an action from another git hoster, you can use an absolute URL, e.g. `uses: https://gitea.com/actions/checkout@v3`.
123123

docs/content/usage/actions/quickstart.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ First of all, you need a Gitea instance.
2323
You can follow the [documentation](installation/from-package.md) to set up a new instance or upgrade your existing one.
2424
It doesn't matter how you install or run Gitea, as long as its version is 1.19.0 or higher.
2525

26-
Actions are disabled by default, so you need to add the following to the configuration file to enable it:
26+
Since 1.21.0, Actions are enabled by default. If you are using versions before 1.21.0, you need to add the following to the configuration file to enable it:
2727

2828
```ini
2929
[actions]

docs/content/usage/actions/quickstart.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ menu:
2323
您可以按照[文档](installation/from-package.md) 来设置一个新实例或升级现有实例。
2424
无论您如何安装或运行Gitea,只要版本号是1.19.0或更高即可。
2525

26-
默认情况下,Actions是禁用的,因此您需要将以下内容添加到配置文件中以启用它
26+
从1.21.0开始,默认情况下,Actions是启用的。如果您正在使用1.21.0之前的版本,您需要将以下内容添加到配置文件中以启用它
2727

2828
```ini
2929
[actions]

models/actions/task_output.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ type ActionTaskOutput struct {
2020
OutputValue string `xorm:"MEDIUMTEXT"`
2121
}
2222

23+
func init() {
24+
db.RegisterModel(new(ActionTaskOutput))
25+
}
26+
2327
// FindTaskOutputByTaskID returns the outputs of the task.
2428
func FindTaskOutputByTaskID(ctx context.Context, taskID int64) ([]*ActionTaskOutput, error) {
2529
var outputs []*ActionTaskOutput

modules/context/repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ func RepoAssignment(ctx *Context) context.CancelFunc {
563563
ctx.Data["CanWriteCode"] = ctx.Repo.CanWrite(unit_model.TypeCode)
564564
ctx.Data["CanWriteIssues"] = ctx.Repo.CanWrite(unit_model.TypeIssues)
565565
ctx.Data["CanWritePulls"] = ctx.Repo.CanWrite(unit_model.TypePullRequests)
566+
ctx.Data["CanWriteActions"] = ctx.Repo.CanWrite(unit_model.TypeActions)
566567

567568
canSignedUserFork, err := repo_module.CanUserForkRepo(ctx, ctx.Doer, ctx.Repo.Repository)
568569
if err != nil {

options/locale/locale_en-US.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2883,6 +2883,7 @@ packages.package_manage_panel = Package Management
28832883
packages.total_size = Total Size: %s
28842884
packages.unreferenced_size = Unreferenced Size: %s
28852885
packages.cleanup = Clean up expired data
2886+
packages.cleanup.success = Cleaned up expired data successfully
28862887
packages.owner = Owner
28872888
packages.creator = Creator
28882889
packages.name = Name
@@ -3528,7 +3529,11 @@ runs.status = Status
35283529
runs.actors_no_select = All actors
35293530
runs.status_no_select = All status
35303531
runs.no_results = No results matched.
3532+
runs.no_workflows = There are no workflows yet.
3533+
runs.no_workflows.quick_start = Don't know how to start with Gitea Action? See <a target="_blank" rel="noopener noreferrer" href="%s">the quick start guide</a>.
3534+
runs.no_workflows.documentation = For more information on the Gitea Action, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
35313535
runs.no_runs = The workflow has no runs yet.
3536+
runs.empty_commit_message = (empty commit message)
35323537
35333538
workflow.disable = Disable Workflow
35343539
workflow.disable_success = Workflow '%s' disabled successfully.

routers/web/repo/view.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ func renderReadmeFile(ctx *context.Context, subfolder string, readmeFile *git.Tr
331331

332332
ctx.Data["FileContent"] = buf.String()
333333
}
334+
335+
if !fInfo.isLFSFile && ctx.Repo.CanEnableEditor(ctx, ctx.Doer) {
336+
ctx.Data["CanEditReadmeFile"] = true
337+
}
334338
}
335339

336340
func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink string) {

templates/admin/base/search.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="ui secondary filter menu gt-ac gt-mx-0">
22
<form class="ui form ignore-dirty gt-f1">
33
<div class="ui fluid action input">
4-
{{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}}
4+
{{template "shared/searchinput" dict "Value" .Keyword}}
55
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
66
</div>
77
</form>

templates/admin/emails/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="ui secondary filter menu gt-ac gt-mx-0">
88
<form class="ui form ignore-dirty gt-f1">
99
<div class="ui fluid action input">
10-
{{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}}
10+
{{template "shared/searchinput" dict "Value" .Keyword}}
1111
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
1212
</div>
1313
</form>

templates/admin/packages/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="ui attached segment">
1515
<form class="ui form ignore-dirty">
1616
<div class="ui fluid action input">
17-
{{template "shared/searchinput" dict "Value" .Query "AutoFocus" true}}
17+
{{template "shared/searchinput" dict "Value" .Query}}
1818
<select class="ui dropdown" name="type">
1919
<option value="">{{ctx.Locale.Tr "packages.filter.type"}}</option>
2020
<option value="all">{{ctx.Locale.Tr "packages.filter.type.all"}}</option>

templates/admin/repo/search.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="ui secondary filter menu gt-ac gt-mx-0">
22
<form class="ui form ignore-dirty gt-f1">
33
<div class="ui fluid action input">
4-
{{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}}
4+
{{template "shared/searchinput" dict "Value" .Keyword}}
55
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
66
</div>
77
</form>

templates/admin/user/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<!-- Search Text -->
5656
<div class="ui fluid action input">
57-
{{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}}
57+
{{template "shared/searchinput" dict "Value" .Keyword}}
5858
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
5959
</div>
6060
</form>

templates/code/searchform.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<form class="ui form ignore-dirty">
22
<div class="ui fluid action input">
3-
{{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true "Disabled" .CodeIndexerUnavailable}}
3+
{{template "shared/searchinput" dict "Value" .Keyword "Disabled" .CodeIndexerUnavailable}}
44
<div class="ui dropdown selection {{if .CodeIndexerUnavailable}} disabled{{end}}" data-tooltip-content="{{ctx.Locale.Tr "explore.search.type.tooltip"}}">
55
<input name="t" type="hidden" value="{{.queryType}}"{{if .CodeIndexerUnavailable}} disabled{{end}}>{{svg "octicon-triangle-down" 14 "dropdown icon"}}
66
<div class="text">{{ctx.Locale.Tr (printf "explore.search.%s" (or .queryType "fuzzy"))}}</div>

templates/explore/repo_search.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<input type="hidden" name="sort" value="{{$.SortType}}">
44
<input type="hidden" name="language" value="{{$.Language}}">
55
<div class="ui fluid action input">
6-
{{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" (not .ProfileReadme)}}
6+
{{template "shared/searchinput" dict "Value" .Keyword}}
77
{{if .PageIsExploreRepositories}}
88
<input type="hidden" name="only_show_relevant" value="{{.OnlyShowRelevant}}">
99
{{else if .TabName}}

templates/explore/search.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="ui secondary filter menu gt-ac gt-mx-0">
22
<form class="ui form ignore-dirty gt-f1">
33
<div class="ui fluid action input">
4-
{{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}}
4+
{{template "shared/searchinput" dict "Value" .Keyword}}
55
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
66
</div>
77
</form>

templates/package/shared/list.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{{template "base/alert" .}}
2+
{{if .HasPackages}}
23
<form class="ui form ignore-dirty">
34
<div class="ui fluid action input">
4-
{{template "shared/searchinput" dict "Value" .Query "AutoFocus" true}}
5+
{{template "shared/searchinput" dict "Value" .Query}}
56
<select class="ui dropdown" name="type">
67
<option value="">{{ctx.Locale.Tr "packages.filter.type"}}</option>
78
<option value="all">{{ctx.Locale.Tr "packages.filter.type.all"}}</option>
@@ -12,6 +13,7 @@
1213
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
1314
</div>
1415
</form>
16+
{{end}}
1517
<div>
1618
{{range .PackageDescriptors}}
1719
<div class="flex-list">

templates/package/shared/versionlist.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p><a href="{{.PackageDescriptor.PackageWebLink}}">{{.PackageDescriptor.Package.Name}}</a> / <strong>{{ctx.Locale.Tr "packages.versions"}}</strong></p>
22
<form class="ui form ignore-dirty">
33
<div class="ui fluid action input">
4-
{{template "shared/searchinput" dict "Value" .Query "AutoFocus" true}}
4+
{{template "shared/searchinput" dict "Value" .Query}}
55
<select class="ui dropdown" name="sort">
66
<option value="version_asc"{{if eq .Sort "version_asc"}} selected="selected"{{end}}>{{ctx.Locale.Tr "filter.string.asc"}}</option>
77
<option value="version_desc"{{if eq .Sort "version_desc"}} selected="selected"{{end}}>{{ctx.Locale.Tr "filter.string.desc"}}</option>

templates/repo/actions/list.tmpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<div class="ui container">
55
{{template "base/alert" .}}
66

7+
{{if .workflows}}
78
<div class="ui stackable grid">
89
<div class="four wide column">
910
<div class="ui fluid vertical menu">
@@ -78,6 +79,9 @@
7879
{{template "repo/actions/runs_list" .}}
7980
</div>
8081
</div>
82+
{{else}}
83+
{{template "repo/actions/no_workflows" .}}
84+
{{end}}
8185
</div>
8286
</div>
8387
{{template "base/footer" .}}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div class="empty-placeholder">
2+
{{svg "octicon-no-entry" 48}}
3+
<h2>{{ctx.Locale.Tr "actions.runs.no_workflows"}}</h2>
4+
{{if and .CanWriteCode .CanWriteActions}}
5+
<p>{{ctx.Locale.Tr "actions.runs.no_workflows.quick_start" "https://docs.gitea.com/usage/actions/quickstart/" | Safe}}</p>
6+
{{end}}
7+
<p>{{ctx.Locale.Tr "actions.runs.no_workflows.documentation" "https://docs.gitea.com/usage/actions/overview/" | Safe}}</p>
8+
</div>

templates/repo/actions/runs_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
<div class="flex-item-main">
1414
<a class="flex-item-title" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
15-
{{- .Title -}}
15+
{{if .Title}}{{.Title}}{{else}}{{ctx.Locale.Tr "actions.runs.empty_commit_message"}}{{end}}
1616
</a>
1717
<div class="flex-item-body">
1818
<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>:

templates/repo/view_file.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
<button class="ui mini basic button unescape-button gt-mr-2 gt-hidden">{{ctx.Locale.Tr "repo.unescape_control_characters"}}</button>
6262
<button class="ui mini basic button escape-button gt-mr-2">{{ctx.Locale.Tr "repo.escape_control_characters"}}</button>
6363
{{end}}
64+
{{if and .ReadmeInList .CanEditReadmeFile}}
65+
<a class="btn-octicon" data-tooltip-content="{{ctx.Locale.Tr "repo.editor.edit_this_file"}}" href="{{.RepoLink}}/_edit/{{PathEscapeSegments .BranchName}}/{{PathEscapeSegments .TreePath}}/{{PathEscapeSegments .FileName}}">{{svg "octicon-pencil"}}</a>
66+
{{end}}
6467
</div>
6568
</h4>
6669
<div class="ui attached table unstackable segment">

templates/shared/actions/runner_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<form class="ui form ignore-dirty" id="user-list-search-form" action="{{$.Link}}">
3636
<!-- Search Text -->
3737
<div class="ui fluid action input">
38-
{{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}}
38+
{{template "shared/searchinput" dict "Value" .Keyword}}
3939
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
4040
</div>
4141
</form>

templates/shared/searchinput.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<input type="search" spellcheck="false" name="q" maxlength="255" placeholder="{{ctx.Locale.Tr "explore.search"}}…"{{if .Value}} value="{{.Value}}"{{end}}{{if .AutoFocus}} autofocus{{end}}{{if .Disabled}} disabled{{end}}>
1+
<input type="search" spellcheck="false" name="q" maxlength="255" placeholder="{{ctx.Locale.Tr "explore.search"}}…"{{if .Value}} value="{{.Value}}"{{end}}{{if .Disabled}} disabled{{end}}>

0 commit comments

Comments
 (0)