Merge pull request #37 from plone/bsuttor-use-defaultUser-png
Use defaultUser.png instead of defaultUser.gif
This commit is contained in:
commit
05fed2def7
@ -4,6 +4,9 @@ Changelog
|
||||
2.3.0 (unreleased)
|
||||
------------------
|
||||
|
||||
- Put defaultUser.png instead of old defaultUser.gif
|
||||
[bsuttor]
|
||||
|
||||
- Remove bbb directory. bbb was never really implemented.
|
||||
[timo]
|
||||
|
||||
|
@ -42,14 +42,14 @@
|
||||
<div class="commentImage" tal:condition="showCommenterImage">
|
||||
<a href="" tal:condition="has_author_link"
|
||||
tal:attributes="href author_home_url">
|
||||
<img src="defaultUser.gif"
|
||||
<img src="defaultUser.png"
|
||||
alt=""
|
||||
class="defaultuserimg"
|
||||
height="32"
|
||||
tal:attributes="src portrait_url;
|
||||
alt reply/author_name" />
|
||||
</a>
|
||||
<img src="defaultUser.gif"
|
||||
<img src="defaultUser.png"
|
||||
alt=""
|
||||
class="defaultuserimg"
|
||||
height="32"
|
||||
|
@ -411,7 +411,7 @@ class CommentsViewlet(ViewletBase):
|
||||
|
||||
if username is None:
|
||||
# return the default user image if no username is given
|
||||
return 'defaultUser.gif'
|
||||
return 'defaultUser.png'
|
||||
else:
|
||||
portal_membership = getToolByName(self.context,
|
||||
'portal_membership',
|
||||
|
@ -479,7 +479,7 @@ class TestCommentsViewlet(unittest.TestCase):
|
||||
def test_get_commenter_portrait_is_none(self):
|
||||
self.assertEqual(
|
||||
self.viewlet.get_commenter_portrait(),
|
||||
'defaultUser.gif'
|
||||
'defaultUser.png'
|
||||
)
|
||||
|
||||
def test_get_commenter_portrait_without_userimage(self):
|
||||
|
Loading…
Reference in New Issue
Block a user