-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fine tune push mirror UI #33866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fine tune push mirror UI #33866
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,31 +2,27 @@ | |
<div class="header"> | ||
{{ctx.Locale.Tr "repo.settings.mirror_settings.push_mirror.edit_sync_time"}} | ||
</div> | ||
<div class="content"> | ||
<form class="ui form ignore-dirty" method="post"> | ||
{{.CsrfTokenHtml}} | ||
<input type="hidden" name="action" value="push-mirror-update"> | ||
<input type="hidden" name="push_mirror_id" id="push-mirror-edit-id"> | ||
<div class="field"> | ||
<label for="name">{{ctx.Locale.Tr "repo.settings.mirror_settings.mirrored_repository"}}</label> | ||
<div class="ui small input"> | ||
<input id="push-mirror-edit-address" readonly> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This breaks changing the mirror URL. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The related PRs are:
The URL is not changeable. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, you are right, I got completely bamboozled: |
||
</div> | ||
</div> | ||
<div class="inline field"> | ||
<label for="push-mirror-edit-interval">{{ctx.Locale.Tr "repo.mirror_interval" .MinimumMirrorInterval}}</label> | ||
<input id="push-mirror-edit-interval" name="push_mirror_interval" autofocus> | ||
</div> | ||
<div class="actions"> | ||
<button class="ui small basic cancel button"> | ||
{{svg "octicon-x"}} | ||
{{ctx.Locale.Tr "cancel"}} | ||
</button> | ||
<button class="ui primary small approve button"> | ||
{{svg "fontawesome-save"}} | ||
{{ctx.Locale.Tr "save"}} | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
<form class="content ui form ignore-dirty" method="post"> | ||
{{.CsrfTokenHtml}} | ||
<input type="hidden" name="action" value="push-mirror-update"> | ||
<input type="hidden" name="push_mirror_id" id="push-mirror-edit-id"> | ||
<div class="field"> | ||
<label>{{ctx.Locale.Tr "repo.settings.mirror_settings.mirrored_repository"}}</label> | ||
<span id="push-mirror-edit-address"></span> | ||
</div> | ||
<div class="field"> | ||
<label for="push-mirror-edit-interval">{{ctx.Locale.Tr "repo.mirror_interval" .MinimumMirrorInterval}}</label> | ||
<input id="push-mirror-edit-interval" name="push_mirror_interval" class="tw-w-auto"> | ||
</div> | ||
<div class="actions"> | ||
<button class="ui small basic cancel button"> | ||
{{svg "octicon-x"}} | ||
{{ctx.Locale.Tr "cancel"}} | ||
</button> | ||
<button class="ui primary small approve button"> | ||
{{svg "fontawesome-save"}} | ||
{{ctx.Locale.Tr "save"}} | ||
</button> | ||
</div> | ||
</form> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it make more sense to include the interval already in the translated string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to? See the screenshot, I do not see your point.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I think the current syntax is good for all languages, no need to make it more complex.
(If not good, it won't be late to add a new translation in a new PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant something like
Push (every %v)
, but yes, we can postpone it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, actually
Push (every %v)
is not really translatable ..... here2h3m
is not a human language, it doesn't fit "every" in many cases. 🤣