blob: 451dc93f592bccfdbd23e553d1c3e4ad350a1dd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<?php
use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\View;
?>
<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?>
<h1><?= $title ?></h1>
<p>
<?= I18N::translate('It can take several minutes to download and install the upgrade. Be patient.') ?>
</p>
<dl>
<?php foreach ($steps as $url => $text) : ?>
<dt><?= $text ?></dt>
<dd class="wt-ajax-load" data-url="<?= e($url) ?>"></dd>
<?php endforeach ?>
</dl>
<?php View::push('javascript') ?>
<script>
function nextAjaxStep() {
$("dd:empty:first").each(function(n, el) {
$(el).load(el.dataset.url, {}, function (responseText, textStatus, req) {
el.innerHTML = responseText;
if (textStatus === "error") {
$(".wt-ajax-load").removeClass("wt-ajax-load");
} else {
nextAjaxStep();
}
});
// Only process one callback at a time.
return false;
});
}
nextAjaxStep();
</script>
<?php View::endpush() ?>
|