Skip to content

Commit e562702

Browse files
author
Gusted
committed
Don't show Public Key in UI
1 parent 22e7162 commit e562702

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,6 +1757,7 @@ settings.mirror_settings.last_update = Last update
17571757
settings.mirror_settings.push_mirror.none = No push mirrors configured
17581758
settings.mirror_settings.push_mirror.remote_url = Git Remote Repository URL
17591759
settings.mirror_settings.push_mirror.add = Add Push Mirror
1760+
settings.mirror_settings.push_mirror.copy_public_key = Copy Public Key
17601761
settings.sync_mirror = Synchronize Now
17611762
settings.mirror_sync_in_progress = Mirror synchronization is in progress. Check back in a minute.
17621763
settings.email_notifications.enable = Enable Email Notifications

templates/repo/settings/options.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
<td>{{$address.Address}}</td>
174174
<td>{{$.i18n.Tr "repo.settings.mirror_settings.direction.push"}}</td>
175175
<td>{{if .LastUpdateUnix}}{{.LastUpdateUnix.AsTime}}{{else}}{{$.i18n.Tr "never"}}{{end}} {{if .LastError}}<div class="ui red label tooltip" data-content="{{.LastError}}">{{$.i18n.Tr "error"}}</div>{{end}}</td>
176-
<td><span readonly style="white-space: nowrap; overflow-x: scroll">{{- .PublicKey -}}</span></td>
176+
<td><a data-clipboard-text="{{.PublicKey}}" readonly>{{$.i18n.Tr "repo.settings.mirror_settings.push_mirror.copy_public_key"}}</a></td>
177177
<td class="right aligned">
178178
<form method="post" style="display: inline-block">
179179
{{$.CsrfTokenHtml}}

0 commit comments

Comments
 (0)