source: trunk/themes/default/template/comment_list.tpl @ 12676

Last change on this file since 12676 was 12676, checked in by rvelices, 12 years ago

bug 2515: a few icons are not in CSS sprite (comment actions use text links now)

  • Property svn:eol-style set to LF
File size: 1.9 KB
Line 
1{* $Id$ *}
2<ul class="thumbnailCategories">
3{foreach from=$comments item=comment name=comment_loop}
4<li>
5        <div class="thumbnailCategory {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
6        {if isset($comment.TN_SRC)}
7        <div class="illustration">
8                <a href="{$comment.U_PICTURE}">
9                <img src="{$comment.TN_SRC}" alt="{$comment.ALT}">
10                </a>
11        </div>
12        {/if}
13        <div class="description"{if isset($comment.IN_EDIT)} style="height:200px"{/if}>
14                {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT)}
15                <div class="actions" style="float:right;font-size:90%">
16                {if isset($comment.U_DELETE)}
17                        <a href="{$comment.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">
18                                {'Delete'|@translate}
19                        </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} | {/if}
20                {/if}
21                {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
22                        <a class="editComment" href="{$comment.U_EDIT}#edit_comment">
23                                {'Edit'|@translate}
24                        </a>{if isset($comment.U_VALIDATE)} | {/if}
25                {/if}
26                {if isset($comment.U_VALIDATE)}
27                        <a href="{$comment.U_VALIDATE}">
28                                {'Validate'|@translate}
29                        </a>
30                {/if}&nbsp;
31                </div>
32                {/if}
33
34                <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span>
35                {if isset($comment.IN_EDIT)}
36                <a name="edit_comment"></a>
37                <form  method="post" action="{$comment.U_EDIT}" class="filter" id="editComment">
38                        <fieldset>
39                                <legend>{'Edit a comment'|@translate}</legend>
40                                <label>{'Comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></label>
41                                <input type="hidden" name="key" value="{$comment.KEY}">
42                                <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}">
43                                <input type="submit" value="{'Submit'|@translate}">
44                        </fieldset>
45                </form>
46                {else}
47                <blockquote><div>{$comment.CONTENT}</div></blockquote>
48                {/if}
49        </div>
50        </div>
51</li>
52{/foreach}
53</ul>
Note: See TracBrowser for help on using the repository browser.