1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2024-07-26 22:28:50 +02:00
Nextcloud-News/templates/part.content.warnings.php
Rhys Tyers 0822765c82 Fix cron job warning layout in NC25
Signed-off-by: Rhys Tyers <mail@rhy.si>
2022-10-23 12:48:39 +02:00

28 lines
1.2 KiB
PHP

<?php if ($_['warnings']['improperlyConfiguredCron']) { ?>
<news-instant-notification 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>
</news-instant-notification>
<?php }; ?>