-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Allow editing push mirrors after creation #26151
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
Merged
delvh
merged 30 commits into
go-gitea:main
from
puni9869:punit/add-mirror-repo-update-time
Aug 1, 2023
Merged
Changes from 12 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
1f5b846
Adding mirror sync time update functionality
puni9869 99a5fe2
Adding mirror sync time update functionality
puni9869 d7910e8
Translations and css id fix
puni9869 feeec6d
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 6112a94
Merge branch 'go-gitea:main' into punit/add-mirror-repo-update-time
puni9869 f9fe1de
Fix mirror enable check
puni9869 7940e69
Fixing the translation key.
puni9869 7e73aed
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 d0ad3cc
Adding translation key to tool tip
puni9869 4995c00
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 ceeb94c
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 8486cbe
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 00ddf41
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 c0ef7ae
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 d6af331
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 a7d4e7e
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 cc1674a
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 f8f6c48
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 bae2659
fix
wxiaoguang ec94ec3
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 a0a5409
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 e224fb5
Adding helping comments
puni9869 62a60b1
Merge branch 'main' into punit/add-mirror-repo-update-time
puni9869 7440f8e
Merge branch 'main' into punit/add-mirror-repo-update-time
GiteaBot 2683d26
Merge branch 'main' into punit/add-mirror-repo-update-time
GiteaBot 24eb1e5
Merge branch 'main' into punit/add-mirror-repo-update-time
GiteaBot e1b1639
Merge branch 'main' into punit/add-mirror-repo-update-time
GiteaBot 80f8372
Merge branch 'main' into punit/add-mirror-repo-update-time
GiteaBot 8bf049d
Merge branch 'main' into punit/add-mirror-repo-update-time
GiteaBot b82fe7d
Merge branch 'main' into punit/add-mirror-repo-update-time
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<div class="ui small modal" id="mirror-sync-update"> | ||
<div class="header"> | ||
{{$.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_id"> | ||
<div class="field"> | ||
<label for="name">{{$.locale.Tr "repo.settings.mirror_settings.mirrored_repository"}}</label> | ||
<div class="ui small input"> | ||
<input name="mirror-address" id="mirror-address" readonly> | ||
</div> | ||
</div> | ||
<div class="inline field"> | ||
<label for="push_mirror_interval">{{.locale.Tr "repo.mirror_interval" .MinimumMirrorInterval}}</label> | ||
<input id="push_mirror_interval" name="push_mirror_interval" autofocus> | ||
</div> | ||
</div> | ||
<div class="actions"> | ||
<button class="ui small basic cancel button"> | ||
{{svg "octicon-x"}} | ||
{{.locale.Tr "cancel"}} | ||
</button> | ||
<button class="ui primary small approve button"> | ||
{{svg "fontawesome-save"}} | ||
{{.locale.Tr "save"}} | ||
</button> | ||
</div> | ||
</form> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import $ from 'jquery'; | ||
|
||
export function initMirrorRepoSyncUpdate() { | ||
puni9869 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
$('.mirror-sync-update-button').on('click', (event) => { | ||
const mirrorAddress = $(event.currentTarget).data('mirror-address'); | ||
const mirrorId = $(event.currentTarget).data('id'); | ||
const syncTime = $(event.currentTarget).data('interval'); | ||
$('#mirror-sync-update #mirror-address').val(mirrorAddress); | ||
$('#mirror-sync-update #push_mirror_id').val(mirrorId); | ||
$('#mirror-sync-update #push_mirror_interval').val(syncTime); | ||
$('#mirror-sync-update .cancel').on('click', (event) => { | ||
event.preventDefault(); | ||
}); | ||
}); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.