]> git.mjollnir.org Git - s9y.git/commitdiff
made a new template for comments that goes to a max of 50px indenting
authorPenny Leach <mjollnir@titania.local>
Sat, 24 Jun 2006 09:40:51 +0000 (21:40 +1200)
committerPenny Leach <penny@catalyst.net.nz>
Tue, 8 Apr 2008 00:03:59 +0000 (12:03 +1200)
templates/sgn2.0/comments.tpl [new file with mode: 0644]

diff --git a/templates/sgn2.0/comments.tpl b/templates/sgn2.0/comments.tpl
new file mode 100644 (file)
index 0000000..4470a11
--- /dev/null
@@ -0,0 +1,31 @@
+{foreach from=$comments item=comment name="comments"}
+    <a id="c{$comment.id}"></a>
+    <div id="serendipity_comment_{$comment.id}" class="serendipity_comment serendipity_comment_author_{$comment.author|@makeFilename} {if $entry.author == $comment.author}serendipity_comment_author_self{/if}{cycle values="comment_oddbox, comment_evenbox"}" style="padding-left: {if $comment.depth*3 < 50}{$comment.depth*3}{else}50{/if}px">
+        <div class="serendipity_commentBody">{$comment.body}</div>
+        <div class="serendipity_comment_source">
+            <a class="comment_source_trace" href="#c{$comment.id}">#{$comment.trace}</a>
+            <span class="comment_source_author">
+            {if $comment.email}
+                <a href="mailto:{$comment.email}">{$comment.author|@default:$CONST.ANONYMOUS}</a>
+            {else}
+                {$comment.author|@default:$CONST.ANONYMOUS}
+            {/if}
+            </span>
+            {if $comment.url}
+                (<a class="comment_source_url" href="{$comment.url}" title="{$comment.url|@escape}">{$CONST.HOMEPAGE}</a>)
+            {/if}
+            {$CONST.ON}
+            <span class="comment_source_date">{$comment.timestamp|@formatTime:$CONST.DATE_FORMAT_SHORT}</span>
+
+            {if $entry.is_entry_owner}
+                (<a class="comment_source_ownerlink" href="{$comment.link_delete}" onclick="return confirm('{$CONST.COMMENT_DELETE_CONFIRM|@sprintf:$comment.id:$comment.author}');">{$CONST.DELETE}</a>)
+            {/if}
+            {if $entry.allow_comments}
+                (<a class="comment_reply" href="#serendipity_CommentForm" id="serendipity_reply_{$comment.id}" onclick="document.getElementById('serendipity_replyTo').value='{$comment.id}'; {$comment_onchange}">{$CONST.REPLY}</a>)
+                <div id="serendipity_replyform_{$comment.id}"></div>
+            {/if}
+        </div>
+    </div>
+{foreachelse}
+    <div class="serendipity_center nocomments">{$CONST.NO_COMMENTS}</div>
+{/foreach}