-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug using php template for warning message
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
- Loading branch information
1 parent
b002ba6
commit a240528
Showing
4 changed files
with
26 additions
and
64 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -1,62 +1,6 @@ | ||
<?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; | ||
max-width: 85% | ||
} | ||
|
||
#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 if ($_['warnings']['improperlyConfiguredCron']) { | ||
|
||
script('news', 'test') | ||
?> | ||
<div></div> | ||
<?php }; ?> |