aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author原俊杰 <yuan@junjie.pro>2022-04-06 19:35:04 +0800
committerGitHub <noreply@github.com>2022-04-06 19:35:04 +0800
commit184302665ff65166d9c26457ce04a70d1d927b7f (patch)
treedd6798bc4624327d66127f230f6f2a3eae907f1b /templates
parent5e242e021b9f32d2d136e4f3324cb56be415f484 (diff)
downloadgitea-184302665ff65166d9c26457ce04a70d1d927b7f.tar.gz
gitea-184302665ff65166d9c26457ce04a70d1d927b7f.zip
Show ssh command directly in template instead of i18n translation (#19335)
* add missing space for generate ssh token command Signed-off-by: Junjie Yuan <yuan@junjie.pro> * Do not use i18n for ssh command * Remove unnecessary settings.ssh_token_code * Revert locale_zh-CN.ini Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/user/settings/keys_ssh.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl
index 85f11c6e4a..5051780efe 100644
--- a/templates/user/settings/keys_ssh.tmpl
+++ b/templates/user/settings/keys_ssh.tmpl
@@ -75,7 +75,7 @@
<input readonly="" value="{{$.TokenToSign}}">
<div class="help">
<p>{{$.i18n.Tr "settings.ssh_token_help"}}</p>
- <p><code>{{$.i18n.Tr "settings.ssh_token_code" $.TokenToSign}}</code></p>
+ <p><code>{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_your_pubkey" $.TokenToSign}}</code></p>
</div>
<br>
</div>