fix names )

This commit is contained in:
slav0nic 2009-02-03 16:19:23 +02:00
parent 0b91ca61a0
commit 567587f4ac
3 changed files with 6 additions and 6 deletions

View file

@ -11,8 +11,8 @@ USERS_PAGE_SIZE = get('USERS_PAGE_SIZE', 20)
AVATARS_UPLOAD_TO = get('AVATARS_UPLOAD_TO', 'forum/avatars')
AVATAR_WIDTH = get('AVATAR_WIDTH', 60)
AVATAR_HEIGHT = get('AVATAR_HEIGHT', 60)
GRAVATOR_SUPPORT = get('GRAVATOR_SUPPORT', True)
GRAVATOR_DEFAULT = get('GRAVATOR_DEFAULT', 'identicon')
GRAVATAR_SUPPORT = get('GRAVATAR_SUPPORT', True)
GRAVATAR_DEFAULT = get('GRAVATAR_DEFAULT', 'identicon')
DEFAULT_TIME_ZONE = get('DEFAULT_TIME_ZONE', 3)
SIGNATURE_MAX_LENGTH = get('SIGNATURE_MAX_LENGTH', 1024)
SIGNATURE_MAX_LINES = get('SIGNATURE_MAX_LINES', 3)

View file

@ -40,7 +40,7 @@
{% if post.user.forum_profile.avatar and post.user.forum_profile.show_avatar %}
<dd class="postavatar"><img src="{{ post.user.forum_profile.avatar.url }}" /></dd>
{% else %}
<dd class="postavatar"><img src="{% gravator post.user.email %}" /></dd>
<dd class="postavatar"><img src="{% gravatar post.user.email %}" /></dd>
{% endif %}
{% if post.user.forum_profile.location %}
<dd>{% trans "From:" %} {{ post.user.forum_profile.location }}</dd>

View file

@ -243,14 +243,14 @@ def new_reports():
@register.simple_tag
def gravator(email):
if forum_settings.GRAVATOR_SUPPORT:
def gravatar(email):
if forum_settings.GRAVATAR_SUPPORT:
size = max(forum_settings.AVATAR_WIDTH, forum_settings.AVATAR_HEIGHT)
url = "http://www.gravatar.com/avatar.php?"
url += urllib.urlencode({
'gravatar_id': md5(email.lower()).hexdigest(),
'size': size,
'default': forum_settings.GRAVATOR_DEFAULT,
'default': forum_settings.GRAVATAR_DEFAULT,
})
return url
else: