summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_maintenance.html.php
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-11-15 20:43:48 -0700
committerChad Kieffer <ckieffer@gmail.com>2009-11-15 20:43:48 -0700
commitdcfa74e2d9084a4dd9ac56333c47d6fdbee46707 (patch)
treeda6885b8bd689705c4695f8c809ddc0c1bb486eb /modules/gallery/views/admin_maintenance.html.php
parentde3bfac2ecff4108517e61213926de64a8046610 (diff)
parent9379308f91a476f790fb8d444536719535c584e4 (diff)
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/views/admin_maintenance.html.php')
-rw-r--r--modules/gallery/views/admin_maintenance.html.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/gallery/views/admin_maintenance.html.php b/modules/gallery/views/admin_maintenance.html.php
index 7ad75f85..ac597715 100644
--- a/modules/gallery/views/admin_maintenance.html.php
+++ b/modules/gallery/views/admin_maintenance.html.php
@@ -20,9 +20,8 @@
<?= t("Action") ?>
</th>
</tr>
- <? $i = 0; ?>
<? foreach ($task_definitions as $task): ?>
- <tr class="<?= ($i % 2 == 0) ? "g-odd" : "g-even" ?> <?= log::severity_class($task->severity) ?>">
+ <tr class="<?= text::alternate("g-odd", "g-even") ?> <?= log::severity_class($task->severity) ?>">
<td class="<?= log::severity_class($task->severity) ?>">
<?= $task->name ?>
</td>
@@ -36,7 +35,6 @@
</a>
</td>
</tr>
- <? $i++ ?>
<? endforeach ?>
</table>
</div>
@@ -68,9 +66,8 @@
<?= t("Action") ?>
</th>
</tr>
- <? $i = 0; ?>
<? foreach ($running_tasks as $task): ?>
- <tr class="<?= ($i % 2 == 0) ? "g-odd" : "g-even" ?> <?= $task->state == "stalled" ? "g-warning" : "" ?>">
+ <tr class="<?= text::alternate("g-odd", "g-even") ?> <?= $task->state == "stalled" ? "g-warning" : "" ?>">
<td class="<?= $task->state == "stalled" ? "g-warning" : "" ?>">
<?= gallery::date_time($task->updated) ?>
</td>
@@ -108,7 +105,6 @@
<? endif ?>
</td>
</tr>
- <? $i++ ?>
<? endforeach ?>
</table>
</div>
@@ -141,9 +137,8 @@
<?= t("Action") ?>
</th>
</tr>
- <? $i = 0; ?>
<? foreach ($finished_tasks as $task): ?>
- <tr class="<?= ($i % 2 == 0) ? "g-odd" : "g-even" ?> <?= $task->state == "success" ? "g-success" : "g-error" ?>">
+ <tr class="<?= text::alternate("g-odd", "g-even") ?> <?= $task->state == "success" ? "g-success" : "g-error" ?>">
<td class="<?= $task->state == "success" ? "g-success" : "g-error" ?>">
<?= gallery::date_time($task->updated) ?>
</td>
@@ -187,7 +182,6 @@
</td>
</tr>
<? endforeach ?>
- <? $i++ ?>
</table>
</div>
<? endif ?>