blob: 5ee0d85ce8bd8c4a41a4b21484f5d1aaf8123ba2 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
<?php if ($_['warnings']['improperlyConfiguredCron']) { ?>
<style>
#cron-warning {
position: absolute;
right: 30px;
top: 120px;
z-index: 5;
padding: 5px;
background-color: var(--color-main-background);
color: var(--color-main-text);
box-shadow: 0 0 6px 0 var(--color-box-shadow);
border-radius: var(--border-radius);
display: flex;
}
#cron-warning a {
color: #3a84e4;
text-decoration: underline;
font-size: small;
}
#close-cron-warning {
padding: 10px;
font-weight: bold;
cursor: pointer;
}
#content {
margin-top: 0px;
}
</style>
<div id="cron-warning">
<div style="<?= $_['nc_major_version'] >= 25 ? 'padding: 12px;' : ''; ?>">
<p><?php p($l->t('Ajax or webcron mode detected! Your feeds will not be updated!')); ?></p>
<ul>
<li>
<a href="https://docs.nextcloud.org/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#cron"
target="_blank"
rel="noreferrer">
<?php
p($l->t('How to set up the operating system cron'));
?>
</a>
</li>
<li>
<a href="https://github.com/nextcloud/news-updater"
target="_blank"
rel="noreferrer">
<?php
p($l->t('Install and set up a faster parallel updater that uses the News app\'s update API'));
?>
</a>
</li>
</ul>
</div>
<div>
<span id="close-cron-warning">X</span>
</div>
</div>
<?php }; ?>
|