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{ ...@@ -412,13 +412,13 @@ table.grid td.date{
.cronlog { .cronlog {
margin-left: 10px; margin-left: 10px;
} }
.cronstatus { .status {
display: inline-block; display: inline-block;
height: 16px; height: 16px;
width: 16px; width: 16px;
vertical-align: text-bottom; vertical-align: text-bottom;
} }
.cronstatus.success { .status.success {
border-radius: 50%; border-radius: 50%;
} }
......
...@@ -290,18 +290,18 @@ if ($_['cronErrors']) { ...@@ -290,18 +290,18 @@ if ($_['cronErrors']) {
$relative_time = relative_modified_date($_['lastcron']); $relative_time = relative_modified_date($_['lastcron']);
$absolute_time = OC_Util::formatDate($_['lastcron']); $absolute_time = OC_Util::formatDate($_['lastcron']);
if (time() - $_['lastcron'] <= 3600): ?> if (time() - $_['lastcron'] <= 3600): ?>
<span class="cronstatus success"></span> <span class="status success"></span>
<span class="crondate" original-title="<?php p($absolute_time);?>"> <span class="crondate" original-title="<?php p($absolute_time);?>">
<?php p($l->t("Last cron job execution: %s.", [$relative_time]));?> <?php p($l->t("Last cron job execution: %s.", [$relative_time]));?>
</span> </span>
<?php else: ?> <?php else: ?>
<span class="cronstatus error"></span> <span class="status error"></span>
<span class="crondate" original-title="<?php p($absolute_time);?>"> <span class="crondate" original-title="<?php p($absolute_time);?>">
<?php p($l->t("Last cron job execution: %s. Something seems wrong.", [$relative_time]));?> <?php p($l->t("Last cron job execution: %s. Something seems wrong.", [$relative_time]));?>
</span> </span>
<?php endif; <?php endif;
else: ?> else: ?>
<span class="cronstatus error"></span> <span class="status error"></span>
<?php p($l->t("Cron was not executed yet!")); <?php p($l->t("Cron was not executed yet!"));
endif; ?> endif; ?>
</p> </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