Skip to content

Commit

Permalink
[#1396,template][xs]: fix check for about being empty and switch to u…
Browse files Browse the repository at this point in the history
…sing h.render_datetime rather than our hand-crafted rendering.
  • Loading branch information
rufuspollock authored and David Read committed Feb 20, 2012
1 parent e181d63 commit fd59002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions ckan/controllers/user.py
Expand Up @@ -103,8 +103,6 @@ def read(self, id=None):
c.about_formatted = self._format_about(user_dict['about'])
c.user_activity_stream = user_activity_list_html(context,
{'id':c.user_dict['id']})

c.created_formatted = h.date_str_to_datetime(user_dict['created']).strftime('%b %d, %Y')
return render('user/read.html')

def me(self):
Expand Down
4 changes: 2 additions & 2 deletions ckan/templates/user/read.html
Expand Up @@ -31,8 +31,8 @@
</py:if>
</dd>
<dt>Member since</dt>
<dd>${c.created_formatted}</dd>
<py:if test="c.about_formatted">
<dd>${h.render_datetime(c.user_dict['created'])}</dd>
<py:if test="unicode(c.about_formatted)">
<dt>About</dt>
<dd>${c.about_formatted}</dd>
</py:if>
Expand Down

0 comments on commit fd59002

Please sign in to comment.