diff options
author | silverwind <me@silverwind.io> | 2023-05-02 11:54:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 05:54:29 -0400 |
commit | d6f82384920e16ead14dd916fa38d49281678a35 (patch) | |
tree | 5001259ce82a1401af827c544e264c22e730a182 /templates/repo | |
parent | df00ccacc9a4840fe86bed75a77841f8801d11d2 (diff) | |
download | gitea-d6f82384920e16ead14dd916fa38d49281678a35.tar.gz gitea-d6f82384920e16ead14dd916fa38d49281678a35.zip |
Replace `N/A` with `-` everywhere (#24474)
Followup to https://github.com/go-gitea/gitea/pull/24427.
Reasoning is that `N/A` is specific to english while `-` is
language-neutral and does not need translation.
Before:
<img width="891" alt="Screenshot 2023-05-01 at 20 58 20"
src="https://user-images.githubusercontent.com/115237/235511592-8a36d0f2-34ff-4dbe-b642-67c0ade644fe.png">
After:
<img width="901" alt="Screenshot 2023-05-01 at 20 59 59"
src="https://user-images.githubusercontent.com/115237/235511594-d49f6d09-92e8-4e99-be7b-2a37f5d24129.png">
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/pulls/tab_menu.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/settings/protected_branch.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/settings/webhook/history.tmpl | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/templates/repo/pulls/tab_menu.tmpl b/templates/repo/pulls/tab_menu.tmpl index 5e4390937c..f44968c775 100644 --- a/templates/repo/pulls/tab_menu.tmpl +++ b/templates/repo/pulls/tab_menu.tmpl @@ -7,11 +7,11 @@ <a class="item {{if .PageIsPullCommits}}active{{end}}" {{if .NumCommits}}href="{{.Issue.Link}}/commits"{{end}}> {{svg "octicon-git-commit"}} {{$.locale.Tr "repo.pulls.tab_commits"}} - <span class="ui small label">{{if .NumCommits}}{{.NumCommits}}{{else}}N/A{{end}}</span> + <span class="ui small label">{{if .NumCommits}}{{.NumCommits}}{{else}}-{{end}}</span> </a> <a class="item {{if .PageIsPullFiles}}active{{end}}" {{if .NumFiles}}href="{{.Issue.Link}}/files"{{end}}> {{svg "octicon-diff"}} {{$.locale.Tr "repo.pulls.tab_files"}} - <span class="ui small label">{{if .NumFiles}}{{.NumFiles}}{{else}}N/A{{end}}</span> + <span class="ui small label">{{if .NumFiles}}{{.NumFiles}}{{else}}-{{end}}</span> </a> </div> diff --git a/templates/repo/settings/protected_branch.tmpl b/templates/repo/settings/protected_branch.tmpl index 2102dac641..494cadfcc1 100644 --- a/templates/repo/settings/protected_branch.tmpl +++ b/templates/repo/settings/protected_branch.tmpl @@ -174,7 +174,7 @@ </td> </tr> {{else}} - <tr><td>N/A</td></tr> + <tr><td>-</td></tr> {{end}} </tbody> </table> diff --git a/templates/repo/settings/webhook/history.tmpl b/templates/repo/settings/webhook/history.tmpl index e573d221d1..8eba5cde68 100644 --- a/templates/repo/settings/webhook/history.tmpl +++ b/templates/repo/settings/webhook/history.tmpl @@ -37,7 +37,7 @@ <span class="ui red label">{{.ResponseInfo.Status}}</span> {{end}} {{else}} - <span class="ui label">N/A</span> + <span class="ui label">-</span> {{end}} </a> {{if or $.Permission.IsAdmin $.IsOrganizationOwner $.PageIsAdmin $.PageIsUserSettings}} @@ -59,7 +59,7 @@ <h5>{{$.locale.Tr "repo.settings.webhook.payload"}}</h5> <pre class="webhook-info"><code class="json">{{.PayloadContent}}</code></pre> {{else}} - N/A + - {{end}} </div> <div class="ui bottom attached tab segment" data-tab="response-{{.ID}}"> @@ -70,7 +70,7 @@ <h5>{{$.locale.Tr "repo.settings.webhook.body"}}</h5> <pre class="webhook-info"><code>{{.ResponseInfo.Body}}</code></pre> {{else}} - N/A + - {{end}} </div> </div> |