diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2009-10-26 22:53:51 -0600 | 
|---|---|---|
| committer | Chad Kieffer <ckieffer@gmail.com> | 2009-10-26 22:53:51 -0600 | 
| commit | 3aedd95341450e3bc4f9040c76d5616ad5e54c05 (patch) | |
| tree | ce56679415a46a23c3f13c5e4e1359f5330a5034 /modules/tag/views | |
| parent | ccb18753cfe5b65d411e91d7f9dda29308088aba (diff) | |
Correct tag admin list markup that I likely hacked up during recent commits. These HTML lists now validate.
Diffstat (limited to 'modules/tag/views')
| -rw-r--r-- | modules/tag/views/admin_tags.html.php | 50 | 
1 files changed, 24 insertions, 26 deletions
| diff --git a/modules/tag/views/admin_tags.html.php b/modules/tag/views/admin_tags.html.php index 3e333817..10d7921a 100644 --- a/modules/tag/views/admin_tags.html.php +++ b/modules/tag/views/admin_tags.html.php @@ -28,34 +28,32 @@        </caption>        <tr>          <td> -          <? foreach ($tags as $i => $tag): ?> -            <? $current_letter = strtoupper(mb_substr($tag->name, 0, 1)) ?> +        <? foreach ($tags as $i => $tag): ?> +          <? $current_letter = strtoupper(mb_substr($tag->name, 0, 1)) ?> -            <? if ($i == 0): /* first letter */ ?> -              <strong><?= html::clean($current_letter) ?></strong> -              <ul> -            <? elseif ($last_letter != $current_letter): /* new letter */ ?> -              <? if ($column_tag_count > $tags_per_column): /* new column */ ?> -                 </td> -                <td> -                <? $column_tag_count = 0 ?> -              <? endif ?> -              </ul> -              <strong><?= html::clean($current_letter) ?></strong> -              <ul> +          <? if ($i == 0): /* first letter */ ?> +          <strong><?= html::clean($current_letter) ?></strong> +          <ul> +          <? elseif ($last_letter != $current_letter): /* new letter */ ?> +          </ul> +            <? if ($column_tag_count > $tags_per_column): /* new column */ ?> +              <? $column_tag_count = 0 ?> +        </td> +        <td>              <? endif ?> - -                <li> -                  <span class="g-editable g-tag-name" rel="<?= $tag->id ?>"><?= html::clean($tag->name) ?></span> -                  <span class="g-understate">(<?= $tag->count ?>)</span> -                  <a href="<?= url::site("admin/tags/form_delete/$tag->id") ?>" -                      class="g-dialog-link g-delete-link g-button"> -                    <span class="ui-icon ui-icon-trash"><?= t("Delete this tag") ?></span></a> -                </li> - -            <? $column_tag_count++ ?> -            <? $last_letter = $current_letter ?> -          <? endforeach /* $tags */ ?> +          <strong><?= html::clean($current_letter) ?></strong> +          <ul> +          <? endif ?> +              <li> +                <span class="g-editable g-tag-name" rel="<?= $tag->id ?>"><?= html::clean($tag->name) ?></span> +                <span class="g-understate">(<?= $tag->count ?>)</span> +                <a href="<?= url::site("admin/tags/form_delete/$tag->id") ?>" +                    class="g-dialog-link g-delete-link g-button"> +                  <span class="ui-icon ui-icon-trash"><?= t("Delete this tag") ?></span></a> +              </li> +          <? $column_tag_count++ ?> +          <? $last_letter = $current_letter ?> +        <? endforeach ?>            </ul>          </td>        </tr> | 
