More robust markup and layout for comments.
This commit is contained in:
parent
bcbd5ba880
commit
8361a9648b
@ -125,22 +125,17 @@
|
||||
|
||||
<div id="comment_{$comment.id}">
|
||||
<dl class="comment_data clearfix">
|
||||
{* TODO: This should not emit an images *}
|
||||
<dt>{$CONST.AUTHOR}:</dt>
|
||||
<dd>{$comment.author|escape|truncate:30:"…"} {$comment.action_author}</dd>
|
||||
<dt>{$CONST.EMAIL}:</dt>
|
||||
<dd>{if empty($comment.email)}N/A{else}<a href="mailto:{$comment.email|escape}" title="{$comment.email|escape}">{$comment.email|escape|truncate:30:"…"}</a>{if $comment.subscribed == 'true'} <span class="serendipity_subscription_on">({$CONST.ACTIVE_COMMENT_SUBSCRIPTION})</span>{/if}{/if}</dd>
|
||||
{* TODO: This should not emit an img *}
|
||||
<dd class="action_email">{$comment.action_email}</dd>
|
||||
<dd>{if empty($comment.email)}N/A{else}<a href="mailto:{$comment.email|escape}" title="{$comment.email|escape}">{$comment.email|escape|truncate:30:"…"}</a>{if $comment.subscribed == 'true'} <span class="serendipity_subscription_on">({$CONST.ACTIVE_COMMENT_SUBSCRIPTION})</span>{/if}{/if} {$comment.action_email}</dd>
|
||||
<dt>IP:</dt>
|
||||
<dd>{if empty($comment.ip)}N/A{else}{$comment.ip|escape}{/if}</dd>
|
||||
{* TODO: This should not emit an img *}
|
||||
<dd class="action_ip">{$comment.action_ip}</dd>
|
||||
<dd>{if empty($comment.ip)}N/A{else}{$comment.ip|escape}{/if} {$comment.action_ip}</dd>
|
||||
<dt>{$CONST.URL}:</dt>
|
||||
<dd>{if empty($comment.url)}N/A{else}<a class="icon_link" href="{$comment.url|escape}" title="{$comment.url|escape}"><span class="icon-link"></span> {$comment.url|escape|truncate:30:"…"}</a> {/if}</dd>
|
||||
<dd class="action_url">{$comment.action_url}</dd>
|
||||
<dd>{if empty($comment.url)}N/A{else}<a class="icon_link" href="{$comment.url|escape}" title="{$comment.url|escape}"><span class="icon-link"></span> {$comment.url|escape|truncate:30:"…"}</a> {/if} {$comment.action_url}</dd>
|
||||
<dt>{$CONST.REFERER}:</dt>
|
||||
<dd>{if empty($comment.referer)}N/A{else}<a class="icon_link" href="{$comment.referer|escape}" title="{$comment.referer|escape}"><span class="icon-link"></span> {$comment.referer|escape|truncate:30:"…"}</a>{/if}</dd>
|
||||
<dd class="action_referer">{$comment.action_referer}</dd>
|
||||
<dd>{if empty($comment.referer)}N/A{else}<a class="icon_link" href="{$comment.referer|escape}" title="{$comment.referer|escape}"><span class="icon-link"></span> {$comment.referer|escape|truncate:30:"…"}</a>{/if} {$comment.action_referer}</dd>
|
||||
</dl>
|
||||
|
||||
<div id="{$comment.id}_summary" class="comment_summary">{$comment.fullBody|truncate:120:"…"}</div>
|
||||
|
@ -826,9 +826,13 @@ summary { cursor: pointer; }
|
||||
|
||||
#serendipity_comments_list .form_check { margin: 1.35em 0; }
|
||||
|
||||
.comment_data { margin-top: 0; }
|
||||
.comment_data {
|
||||
clear: both;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.comment_data dt, .comment_data dd,
|
||||
.comment_data dt,
|
||||
.comment_data dd,
|
||||
.template_info dt,
|
||||
.template_info dd { float: left; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user