diff options
author | rvelices <rv-github@modusoptimus.com> | 2010-11-25 21:26:29 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2010-11-25 21:26:29 +0000 |
commit | bad80308ea2a987f34b44dca1912010f78f3341a (patch) | |
tree | 55b5c558b680e27a36bfe0f37aefcec5caba70ae /themes/default/template/comment_list.tpl | |
parent | c3df7f2705140e3830438db7a0dc24eaa1b5cf28 (diff) |
-fix css rules
- comment_list.tpl style was broken
- picture_nav_buttons.tpl shorter javascript
git-svn-id: http://piwigo.org/svn/trunk@7877 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/default/template/comment_list.tpl')
-rw-r--r-- | themes/default/template/comment_list.tpl | 103 |
1 files changed, 52 insertions, 51 deletions
diff --git a/themes/default/template/comment_list.tpl b/themes/default/template/comment_list.tpl index c3e5eb791..f73e61b19 100644 --- a/themes/default/template/comment_list.tpl +++ b/themes/default/template/comment_list.tpl @@ -2,57 +2,58 @@ <ul class="thumbnailCategories"> {foreach from=$comments item=comment name=comment_loop} <li> - <div class="thumbnailCategory {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> - {if isset($comment.TN_SRC)} - <div class="illustration"> - <a href="{$comment.U_PICTURE}"> - <img src="{$comment.TN_SRC}" alt="{$comment.ALT}"> - </a> - </div> - {/if} - <div class="description" style="height:{if isset($comment.IN_EDIT)}200{/if}px"> - {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) } - <ul class="actions" style="float:right"> - {if isset($comment.U_DELETE)} - <li> - <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> - <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" class="button" alt="[delete]"> - </a> - </li> - {/if} - {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} - <li> - <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}"> - <img src="{$ROOT_URL}{$themeconf.icon_dir}/edit.png" class="button" alt="[edit]"> - </a> - </li> - {/if} - {if isset($comment.U_VALIDATE)} - <li> - <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}"> - <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" class="button" alt="[validate]"> - </a> - </li> - {/if} - </ul> - {/if} - <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span> - {if isset($comment.IN_EDIT)} - <a name="edit_comment"></a> - <form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment"> - <fieldset> - <legend>{'Edit a comment'|@translate}</legend> - <label>{'Comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></label> - <input type="hidden" name="key" value="{$comment.KEY}"> - <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> - <input class="submit" type="submit" value="{'Submit'|@translate}"> - </fieldset> - </form> - {else} - <blockquote><div>{$comment.CONTENT}</div></blockquote> - {/if} - </div> - </div> + <div class="thumbnailCategory {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> + {if isset($comment.TN_SRC)} + <div class="illustration"> + <a href="{$comment.U_PICTURE}"> + <img src="{$comment.TN_SRC}" alt="{$comment.ALT}"> + </a> + </div> + {/if} + <div class="description"{if isset($comment.IN_EDIT)} style="height:200px"{/if}> + {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) } + <ul class="actions" style="float:right"> + {if isset($comment.U_DELETE)} + <li> + <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> + <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" class="button" alt="[delete]"> + </a> + </li> + {/if} + {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} + <li> + <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}"> + <img src="{$ROOT_URL}{$themeconf.icon_dir}/edit.png" class="button" alt="[edit]"> + </a> + </li> + {/if} + {if isset($comment.U_VALIDATE)} + <li> + <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}"> + <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" class="button" alt="[validate]"> + </a> + </li> + {/if} + </ul> + {/if} + + <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span> + {if isset($comment.IN_EDIT)} + <a name="edit_comment"></a> + <form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment"> + <fieldset> + <legend>{'Edit a comment'|@translate}</legend> + <label>{'Comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></label> + <input type="hidden" name="key" value="{$comment.KEY}"> + <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> + <input class="submit" type="submit" value="{'Submit'|@translate}"> + </fieldset> + </form> + {else} + <blockquote><div>{$comment.CONTENT}</div></blockquote> + {/if} + </div> + </div> </li> {/foreach} </ul> |