Commit 97c60fd2 authored by Björn Schießle's avatar Björn Schießle
Browse files

change 'cronstatus' to 'status' so that it can be used in other apps too

parent c5e41450
......@@ -412,13 +412,13 @@ table.grid td.date{
.cronlog {
margin-left: 10px;
}
.cronstatus {
.status {
display: inline-block;
height: 16px;
width: 16px;
vertical-align: text-bottom;
}
.cronstatus.success {
.status.success {
border-radius: 50%;
}
......
......@@ -290,18 +290,18 @@ if ($_['cronErrors']) {
$relative_time = relative_modified_date($_['lastcron']);
$absolute_time = OC_Util::formatDate($_['lastcron']);
if (time() - $_['lastcron'] <= 3600): ?>
<span class="cronstatus success"></span>
<span class="status success"></span>
<span class="crondate" original-title="<?php p($absolute_time);?>">
<?php p($l->t("Last cron job execution: %s.", [$relative_time]));?>
</span>
<?php else: ?>
<span class="cronstatus error"></span>
<span class="status error"></span>
<span class="crondate" original-title="<?php p($absolute_time);?>">
<?php p($l->t("Last cron job execution: %s. Something seems wrong.", [$relative_time]));?>
</span>
<?php endif;
else: ?>
<span class="cronstatus error"></span>
<span class="status error"></span>
<?php p($l->t("Cron was not executed yet!"));
endif; ?>
</p>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment