Skip to content

Commit 1843026

Browse files
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>
1 parent 5e242e0 commit 1843026

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

options/locale/locale_en-US.ini

-1
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,6 @@ ssh_invalid_token_signature = The provided SSH key, signature or token do not ma
664664
ssh_token_required = You must provide a signature for the below token
665665
ssh_token = Token
666666
ssh_token_help = You can generate a signature using:
667-
ssh_token_code = echo -n "%s" | ssh-keygen -Y sign -n gitea -f /path_to_your_pubkey
668667
ssh_token_signature = Armored SSH signature
669668
key_signature_ssh_placeholder = Begins with '-----BEGIN SSH SIGNATURE-----'
670669
verify_ssh_key_success = SSH key '%s' has been verified.

templates/user/settings/keys_ssh.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
<input readonly="" value="{{$.TokenToSign}}">
7676
<div class="help">
7777
<p>{{$.i18n.Tr "settings.ssh_token_help"}}</p>
78-
<p><code>{{$.i18n.Tr "settings.ssh_token_code" $.TokenToSign}}</code></p>
78+
<p><code>{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_your_pubkey" $.TokenToSign}}</code></p>
7979
</div>
8080
<br>
8181
</div>

0 commit comments

Comments
 (0)