source: extensions/stripped/template/comment_list.tpl @ 12960

Last change on this file since 12960 was 12960, checked in by Zaphod, 12 years ago

version 2.1.0

File size: 2.3 KB
Line 
1{* $Id$ *}
2<ul class="commentList">
3        {foreach from=$comments item=comment name=comment_loop}
4                <li class="comment">
5                        {if isset($comment.TN_SRC)}
6                                <div class="illustration">
7                                        <a href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}" alt="{$comment.ALT}" /></a>
8                                </div>
9                        {/if}
10                        <div class="description">
11                                {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) }
12                                        <div class="actions">
13                                                {if isset($comment.U_DELETE)}
14                                                        <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">
15                                                                [{'Delete'|@translate}]
16                                                        </a>
17                                                {/if}
18                                                {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
19                                                        <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}">
20                                                                [{'edit'|@translate}]
21                                                        </a>
22                                                {/if}
23                                                {if isset($comment.U_VALIDATE)}
24                                                        <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}">
25                                                                [{'validate'|@translate}]
26                                                        </a>
27                                                {/if}
28                                        </div>
29                                {/if}
30                                <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span>
31                                {if isset($comment.IN_EDIT)}
32                                        <a name="edit_comment"></a>
33                                        <form  method="post" action="{$comment.U_EDIT}" class="filter" id="editComment">
34                                                <fieldset>
35                                                        <legend>{'Edit a comment'|@translate}</legend>
36                                                        <label><textarea name="content" id="contenteditid" rows="4" cols="80">{$comment.CONTENT|@escape}</textarea></label>
37                                                        <input type="hidden" name="key" value="{$comment.KEY}">
38                                                        <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}">
39                                                        <input class="submit" type="submit" value="{'Submit'|@translate}">
40                                                </fieldset>
41                                        </form>
42                                {else}
43                                        <blockquote><div>{$comment.CONTENT}</div></blockquote>
44                                {/if}
45                        </div>
46                </li>
47        {/foreach}
48</ul>
49<div style="clear: both;"></div>
50{footer_script}{literal}
51        jQuery("document").ready(function(jQuery) {
52                var rT=jQuery(".replyTo");
53                if (rT.length !=0) {
54                        var trT=rT.attr("title");
55                        var pe=trT.search(" ");
56                        if (pe>0) trT=trT.substring(0,pe);
57                        rT.text("["+trT+"]");
58                }
59        });
60{/literal}{/footer_script}
Note: See TracBrowser for help on using the repository browser.