diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-11-15 19:34:44 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-15 19:34:44 -0800 |
| commit | e0f4e6500de0b5f0e9de973eadcd879c45da8e18 (patch) | |
| tree | 4029f3c1abe18fd6dbc097e2ee1f7a562fbe4625 /modules/comment/views/admin_comments.html.php | |
| parent | 64ef86a8ee0c054bdc8743beaa1eca3bbb46a676 (diff) | |
Use text::alternate() instead of hand-rolled even/odd code.
Diffstat (limited to 'modules/comment/views/admin_comments.html.php')
| -rw-r--r-- | modules/comment/views/admin_comments.html.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/views/admin_comments.html.php b/modules/comment/views/admin_comments.html.php index b138702c..20236a7a 100644 --- a/modules/comment/views/admin_comments.html.php +++ b/modules/comment/views/admin_comments.html.php @@ -103,8 +103,8 @@ <?= t("Actions") ?> </th> </tr> - <? foreach ($comments as $i => $comment): ?> - <tr id="g-comment-<?= $comment->id ?>" class="<?= ($i % 2 == 0) ? "g-odd" : "g-even" ?>"> + <? foreach ($comments as $comment): ?> + <tr id="g-comment-<?= $comment->id ?>" class="<?= text::alternate("g-odd", "g-even") ?>"> <td> <a href="#"> <img src="<?= $comment->author()->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>" |
