Skip to content

Commit

Permalink
Template fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Oct 25, 2024
1 parent 4097e0d commit 30635d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions templates/Admin/QueueScheduler/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
</td>
<td>
<?php if ($schedulerRow->last_run) { ?>
<div><small>Last run: <?php echo $schedulerRow->last_run; ?></small></div>
<div><small>Last run: <?php echo $this->Time->nice($schedulerRow->last_run); ?></small></div>
<?php } ?>
<?php if ($schedulerRow->next_run) { ?>
<div><small>Next run: <?php echo $schedulerRow->next_run; ?></small></div>
<div><small>Next run: <?php echo $this->Time->nice($schedulerRow->next_run); ?></small></div>
<?php } ?>
</td>
<td class="actions">
Expand Down
4 changes: 2 additions & 2 deletions templates/Admin/SchedulerRows/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
<?php } ?>

<?php if ($row->last_run) { ?>
<div><small>Last run: <?php echo $row->last_run; ?></small></div>
<div><small>Last run: <?php echo $this->Time->nice($row->last_run); ?></small></div>
<?php } ?>
<?php if ($row->next_run) { ?>
<div><small>Next run: <?php echo $row->next_run; ?></small></div>
<div><small>Next run: <?php echo $this->Time->nice($row->next_run); ?></small></div>
<?php } ?>
</td>
<td><?= $this->Time->nice($row->created) ?></td>
Expand Down
5 changes: 2 additions & 3 deletions templates/Admin/SchedulerRows/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@
<?php if (class_exists('Cron\CronExpression') && $row->isCronExpression()) { ?>
<h3>Crontab expression</h3>
<p>If you want to port this into a native crontab line, copy and paste the following</p>
<code>
<pre><?php echo (new \Cron\CronExpression($row->frequency))?></pre>
</code>

<pre class="crontab"><?php echo (new \Cron\CronExpression($row->frequency))?></pre>

<?php } ?>
</div>
Expand Down

0 comments on commit 30635d8

Please sign in to comment.