Merge pull request #37 from plone/bsuttor-use-defaultUser-png

Use defaultUser.png instead of defaultUser.gif
This commit is contained in:
David Glick 2013-11-13 11:07:45 -08:00
commit 05fed2def7
4 changed files with 7 additions and 4 deletions

View File

@ -4,6 +4,9 @@ Changelog
2.3.0 (unreleased) 2.3.0 (unreleased)
------------------ ------------------
- Put defaultUser.png instead of old defaultUser.gif
[bsuttor]
- Remove bbb directory. bbb was never really implemented. - Remove bbb directory. bbb was never really implemented.
[timo] [timo]

View File

@ -42,14 +42,14 @@
<div class="commentImage" tal:condition="showCommenterImage"> <div class="commentImage" tal:condition="showCommenterImage">
<a href="" tal:condition="has_author_link" <a href="" tal:condition="has_author_link"
tal:attributes="href author_home_url"> tal:attributes="href author_home_url">
<img src="defaultUser.gif" <img src="defaultUser.png"
alt="" alt=""
class="defaultuserimg" class="defaultuserimg"
height="32" height="32"
tal:attributes="src portrait_url; tal:attributes="src portrait_url;
alt reply/author_name" /> alt reply/author_name" />
</a> </a>
<img src="defaultUser.gif" <img src="defaultUser.png"
alt="" alt=""
class="defaultuserimg" class="defaultuserimg"
height="32" height="32"

View File

@ -411,7 +411,7 @@ class CommentsViewlet(ViewletBase):
if username is None: if username is None:
# return the default user image if no username is given # return the default user image if no username is given
return 'defaultUser.gif' return 'defaultUser.png'
else: else:
portal_membership = getToolByName(self.context, portal_membership = getToolByName(self.context,
'portal_membership', 'portal_membership',

View File

@ -479,7 +479,7 @@ class TestCommentsViewlet(unittest.TestCase):
def test_get_commenter_portrait_is_none(self): def test_get_commenter_portrait_is_none(self):
self.assertEqual( self.assertEqual(
self.viewlet.get_commenter_portrait(), self.viewlet.get_commenter_portrait(),
'defaultUser.gif' 'defaultUser.png'
) )
def test_get_commenter_portrait_without_userimage(self): def test_get_commenter_portrait_without_userimage(self):