mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-16 14:56:16 +01:00
1f364cfeee
(cherry picked from commita3b3b8a2df
) (cherry picked from commitde0fd2d2e4
) (cherry picked from commite1bf4de211
) (cherry picked from commit60ffc88a47
) (cherry picked from commit7d2beea9ca
) (cherry picked from commit171eadb952
) (cherry picked from commit5e81f75ed2
) Conflicts: templates/install.tmpl templates/post-install.tmpl templates/repo/migrate/migrating.tmpl (cherry picked from commit641c4a36c5
) (cherry picked from commitf1dbb2dcff
) (cherry picked from commitb66de5e531
) (cherry picked from commiteeccdf21a1
) (cherry picked from commitaf37663f4d
) (cherry picked from commited3739dccb
) (cherry picked from commitf0036e37cf
) (cherry picked from commit90d453898a
) (cherry picked from commitc011543238
) (cherry picked from commita294f34165
) (cherry picked from commitcc00759140
) (cherry picked from commitabe6d83b85
) (cherry picked from commit274d286339
) (cherry picked from commit594aaf3c95
) (cherry picked from commit6059a376f4
) (cherry picked from commit676eb49a12
) (cherry picked from commitfc834fdb86
) (cherry picked from commite1e89a4349
) (cherry picked from commit89e0d29cdb
) (cherry picked from commiteb7fc7a27e
) (cherry picked from commitcaa41ff629
) (cherry picked from commita74b6adb6a
) (cherry picked from commit4fc629b0d4
) (cherry picked from commit66a3fb5dcd
) (cherry picked from commitb26ec6315a
) (cherry picked from commit8d9d4d6f6b
) (cherry picked from commitaa8e866656
) (cherry picked from commitd23f3bd60f
) (cherry picked from commitfab2d1cafa
) (cherry picked from commit39d9d405c3
) (cherry picked from commitd88db97d41
) (cherry picked from commit64f5a911ec
)
101 lines
3.7 KiB
Go HTML Template
101 lines
3.7 KiB
Go HTML Template
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container">
|
|
<div class="ui grid">
|
|
<div class="sixteen wide column content">
|
|
{{template "base/alert" .}}
|
|
<div class="home">
|
|
<div class="ui stackable middle very relaxed page grid">
|
|
<div id="repo_migrating" class="sixteen wide center aligned centered column" data-migrating-task-id="{{.MigrateTask.ID}}">
|
|
<div>
|
|
<img src="{{AssetUrlPrefix}}/img/forgejo-loading.svg" width="256" height="256">
|
|
</div>
|
|
</div>
|
|
<div id="repo_migrating_failed_image" class="sixteen wide center aligned centered column gt-hidden">
|
|
<div>
|
|
<span class="red">{{svg "octicon-git-pull-request-closed" 256 "ui red icon"}}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="ui stackable middle very relaxed page grid">
|
|
<div class="sixteen wide center aligned centered column">
|
|
<div id="repo_migrating_progress">
|
|
<p>{{ctx.Locale.Tr "repo.migrate.migrating" .CloneAddr | Safe}}</p>
|
|
<p id="repo_migrating_progress_message"></p>
|
|
</div>
|
|
<div id="repo_migrating_failed" class="gt-hidden">
|
|
{{if .CloneAddr}}
|
|
<p>{{ctx.Locale.Tr "repo.migrate.migrating_failed" .CloneAddr | Safe}}</p>
|
|
{{else}}
|
|
<p>{{ctx.Locale.Tr "repo.migrate.migrating_failed_no_addr" | Safe}}</p>
|
|
{{end}}
|
|
<p id="repo_migrating_failed_error"></p>
|
|
</div>
|
|
{{if .Permission.IsAdmin}}
|
|
<div class="divider"></div>
|
|
<div class="item">
|
|
{{if .Failed}}
|
|
<button class="ui basic red show-modal button" data-modal="#delete-repo-modal">{{ctx.Locale.Tr "repo.settings.delete"}}</button>
|
|
{{else}}
|
|
<button class="ui basic show-modal button" data-modal="#cancel-repo-modal">{{ctx.Locale.Tr "cancel"}}</button>
|
|
{{end}}
|
|
<button id="repo_migrating_retry" data-migrating-task-retry-url="{{.Link}}/settings/migrate/retry" class="ui basic button gt-hidden">{{ctx.Locale.Tr "retry"}}</button>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="ui small modal" id="delete-repo-modal">
|
|
<div class="header">
|
|
{{ctx.Locale.Tr "repo.settings.delete"}}
|
|
</div>
|
|
<div class="content">
|
|
<div class="ui warning message">
|
|
{{ctx.Locale.Tr "repo.settings.delete_notices_1" | Safe}}<br>
|
|
{{ctx.Locale.Tr "repo.settings.delete_notices_2" .Repository.FullName | Safe}}
|
|
{{if .Repository.NumForks}}<br>
|
|
{{ctx.Locale.Tr "repo.settings.delete_notices_fork_1"}}
|
|
{{end}}
|
|
</div>
|
|
<form class="ui form" action="{{.Link}}/settings" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<input type="hidden" name="action" value="delete">
|
|
<div class="field">
|
|
<label>
|
|
{{ctx.Locale.Tr "repo.settings.transfer_form_title"}}
|
|
<span class="text red">{{.Repository.Name}}</span>
|
|
</label>
|
|
</div>
|
|
<div class="required field">
|
|
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
|
|
<input id="repo_name" name="repo_name" required>
|
|
</div>
|
|
|
|
<div class="text right actions">
|
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
|
<button class="ui red button">{{ctx.Locale.Tr "repo.settings.confirm_delete"}}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="ui g-modal-confirm modal" id="cancel-repo-modal">
|
|
<div class="header">
|
|
{{ctx.Locale.Tr "repo.migrate.cancel_migrating_title"}}
|
|
</div>
|
|
<form action="{{.Link}}/settings/migrate/cancel" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<div class="content">
|
|
{{ctx.Locale.Tr "repo.migrate.cancel_migrating_confirm"}}
|
|
</div>
|
|
{{template "base/modal_actions_confirm" .}}
|
|
</form>
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|