summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-06-16 06:17:52 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-06-16 06:17:52 +0000
commit337116a9bb3c31865b348d7fcfb0b013e09b4d82 (patch)
tree960024d8dd868e085052270e35f3076ed506177f /templates
parenta7958ba8783dd8466b220ec5f376f80746354dcf (diff)
downloadtags-337116a9bb3c31865b348d7fcfb0b013e09b4d82.tar.gz
tags-337116a9bb3c31865b348d7fcfb0b013e09b4d82.tar.bz2
tags-337116a9bb3c31865b348d7fcfb0b013e09b4d82.zip
minor template cleanup and xhmtl fixes
Diffstat (limited to 'templates')
-rw-r--r--templates/tags_list.tpl15
-rw-r--r--templates/view_tags_mini_inc.tpl28
2 files changed, 20 insertions, 23 deletions
diff --git a/templates/tags_list.tpl b/templates/tags_list.tpl
index 7837b5e..6ad9b6a 100644
--- a/templates/tags_list.tpl
+++ b/templates/tags_list.tpl
@@ -1,9 +1,9 @@
{strip}
<table class="data">
<tr>
- <th>{tr}Tag{/tr}</th>
- <th>{tr}Use Count{/tr}</th>
- <th>{tr}Action{/tr}</th>
+ <th style="width:80%;">{tr}Tag{/tr}</th>
+ <th style="width:10%;">{tr}Use Count{/tr}</th>
+ <th style="width:10%;">{tr}Action{/tr}</th>
</tr>
{if $tagData}
{cycle values="even,odd" print=false}
@@ -15,7 +15,7 @@
<td style="text-align:center;">
{$tag.popcant}
</td>
- <td style="text-align:center;">
+ <td class="actionicon">
{if $gBitUser->hasPermission( 'p_tags_edit' ) }
{smartlink ititle="Edit" ifile="edit.php" ibiticon="icons/accessories-text-editor" tag_id=$tag.tag_id}
{/if}
@@ -24,17 +24,14 @@
{smartlink ititle="Remove" ibiticon="icons/edit-delete" action=remove tag_id=$tag.tag_id status_id=$smarty.request.status_id}
{/if}
</td>
- </tr>
+ </tr>
{/foreach}
{else}
<tr class="norecords">
- <td colspan="5">
+ <td colspan="3">
{tr}No tags found{/tr}
</td>
</tr>
{/if}
</table><!-- end .data -->
{/strip}
-
-
-
diff --git a/templates/view_tags_mini_inc.tpl b/templates/view_tags_mini_inc.tpl
index c4c674b..7dd8fb6 100644
--- a/templates/view_tags_mini_inc.tpl
+++ b/templates/view_tags_mini_inc.tpl
@@ -1,21 +1,21 @@
{strip}
{if count($tagData) > 0 && $gBitUser->hasPermission('p_tags_view')}
<div class="tags">
- <form action="{$smarty.const.TAGS_PKG_URL}drop_tags.php">
- <input type="hidden" name="content_id" value="{$gContent->mContentId}" />
- <b>{tr}Tags:{/tr}</b>&nbsp;
- {section name=tag loop=$tagData}
- {if $smarty.section.tag.index > 0},&nbsp;{/if}
- <a href="{$smarty.const.TAGS_PKG_URL}index.php?tags={$tagData[tag].tag}">{$tagData[tag].tag}</a>
+ {form ipackage=tags ifile=drop_tags.php}
+ <input type="hidden" name="content_id" value="{$gContent->mContentId}" />
+ <strong>{tr}Tags:{/tr}</strong>&nbsp;
+ {section name=tag loop=$tagData}
+ {if $smarty.section.tag.index > 0},&nbsp;{/if}
+ <a href="{$smarty.const.TAGS_PKG_URL}index.php?tags={$tagData[tag].tag}">{$tagData[tag].tag}</a>
+ {if $gContent->isOwner() || $gBitUser->hasPermission('p_tags_admin')}
+ <input type="checkbox" name="tag_id[]" value="{$tagData[tag].tag_id}" />
+ <input type="hidden" name="tag_{$tagData[tag].tag_id}" value="{$tagData[tag].tag}" />
+ {/if}
+ {/section}
{if $gContent->isOwner() || $gBitUser->hasPermission('p_tags_admin')}
- <input type="checkbox" name="tag_id[]" value="{$tagData[tag].tag_id}" />
- <input type="hidden" name="tag_{$tagData[tag].tag_id}" value="{$tagData[tag].tag}" />
+ <input type="submit" name="drop_tags" value="{tr}Drop Tags{/tr}" />
{/if}
- {/section}
- {if $gContent->isOwner() || $gBitUser->hasPermission('p_tags_admin')}
- <input type="submit" name="drop_tags" value="{tr}Drop Tags{/tr}" />
- {/if}
- </form>
-</div>
+ {/form}
+</div>
{/if}
{/strip}