[pLog-svn] r3326 - plog/trunk/templates/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Wed May 3 22:09:50 GMT 2006
Author: oscar
Date: 2006-05-03 22:09:50 +0000 (Wed, 03 May 2006)
New Revision: 3326
Modified:
plog/trunk/templates/admin/dashboard.template
plog/trunk/templates/admin/editcomments.template
plog/trunk/templates/admin/edittrackbacks.template
Log:
cosmetic fixes, so that long comments or trackbacks (like the spam ones) don't break the layout
Modified: plog/trunk/templates/admin/dashboard.template
===================================================================
--- plog/trunk/templates/admin/dashboard.template 2006-05-03 19:35:03 UTC (rev 3325)
+++ plog/trunk/templates/admin/dashboard.template 2006-05-03 22:09:50 UTC (rev 3326)
@@ -60,7 +60,7 @@
{if $comment->getTopic() == ""}
<i>{$locale->tr("no_subject")}</i>
{else}
- {$comment->getTopic()|strip_tags}
+ {$comment->getTopic()|strip_tags|utf8_truncate:60:"...":true}
{/if}
</a>
</td>
Modified: plog/trunk/templates/admin/editcomments.template
===================================================================
--- plog/trunk/templates/admin/editcomments.template 2006-05-03 19:35:03 UTC (rev 3325)
+++ plog/trunk/templates/admin/editcomments.template 2006-05-03 22:09:50 UTC (rev 3326)
@@ -68,10 +68,14 @@
<input class="checkbox" type="checkbox" name="commentIds[{$comment->getId()}]" id="checks_{$comment->getId()}" value="{$comment->getId()}" />
</td>
<td class="col_highlighted">
- {$comment->getTopic()|strip_tags}
+ {textformat wrap=20 wrap_cut=true}
+ {$comment->getTopic()|strip_tags}
+ {/textformat}
</td>
<td>
- {$comment->getText()}
+ {textformat wrap=40 wrap_cut=true}
+ {$comment->getText()}
+ {/textformat}
</td>
<td>
<a href="mailto:{$comment->getUserEmail()}">
Modified: plog/trunk/templates/admin/edittrackbacks.template
===================================================================
--- plog/trunk/templates/admin/edittrackbacks.template 2006-05-03 19:35:03 UTC (rev 3325)
+++ plog/trunk/templates/admin/edittrackbacks.template 2006-05-03 22:09:50 UTC (rev 3326)
@@ -69,10 +69,14 @@
<input class="checkbox" type="checkbox" name="trackbackIds[{$trackback->getId()}]" id="trackbackIds[{$trackback->getId()}]" value="{$trackback->getId()}" />
</td>
<td class="col_highlighted">
+ {textformat wrap=40 wrap_cut=true}
{$trackback->getTopic()}
+ {/textformat}
</td>
<td>
+ {textformat wrap=40 wrap_cut=true}
{$trackback->getText()|escape:html}
+ {/textformat}
</td>
<td>
<a href="{$trackback->getUserUrl()}">{$trackback->getUserName()}</a>
More information about the pLog-svn
mailing list