resize the commenter's image with css;

svn path=/plone.app.discussion/trunk/; revision=27191
This commit is contained in:
Timo Stollenwerk 2009-05-28 07:00:40 +00:00
parent 2ecd5e76a5
commit 4d0541bfd8
2 changed files with 16 additions and 3 deletions

View File

@ -19,14 +19,13 @@
style string:margin-left: ${depth}em; style string:margin-left: ${depth}em;
id string:comment-${reply/id}"> id string:comment-${reply/id}">
<div class="commentImage" tal:condition="not:anonymous_creator">
<tal:authorimage tal:condition="not:anonymous_creator">
<a href="" tal:attributes="href author_home_url"> <a href="" tal:attributes="href author_home_url">
<img src="" alt="" <img src="" alt=""
tal:attributes="src string:${context/portal_url}/portal_memberdata/portraits/${reply/author_username}; tal:attributes="src string:${context/portal_url}/portal_memberdata/portraits/${reply/author_username};
alt reply/creator" /> alt reply/creator" />
</a> </a>
</tal:authorimage> </div>
<h3> <h3>
<a name="comments" tal:attributes="name reply/title"> <a name="comments" tal:attributes="name reply/title">

View File

@ -1,5 +1,19 @@
/* plone.app.discussion stylesheet */ /* plone.app.discussion stylesheet */
/* Comments Viewlet
---------------------------------------------------------------- */
.commentImage {
}
.commentImage img {
width: 50px;
}
/* Forms
---------------------------------------------------------------- */
.reply-to-comment-button { .reply-to-comment-button {
float: right; float: right;
margin-top: -2.5em; margin-top: -2.5em;