             if index < thread.posts.length
               post = thread.posts[index]
               content = showdown.makeHtml(post.source)
-              context.get_user post.username, (post_user) ->
-                context.render('templates/post.template', {post: {content: content, date: format_date(post.date), user: post_user}}).then (post) ->
+              context.getUser post.username, (postUser) ->
+                context.render('templates/post.template', {post: {content: content, date: formatDate(post.date), user: postUser}}).then (post) ->
                   $(post).appendTo('.thread')
                   render0(index + 1)
             else

  @get '#/u/:username', { token: @session( 'token' ) }, (context) ->
    username = @params.username
    $.get '/user/' + username, { token: @session( 'token' ) }, (user) ->
      context.partial('templates/profile.template', { user: user, date: format_date(user.joindate) })

  # Own profile page
  @get '#/u', (context) ->
    $.get '/user/' + @user.username, { token: @session( 'token' ) }, (user) ->
      context.partial('templates/profile.template', { user: user, date: format_date(user.joindate) })

  # Login box
  @get '#/login', (context) ->


  @before (context) ->
    @user = @session('user')
    @getUser = (username, data) -> getUser.apply(@, [username, data])
    if context.path != '#/login'
      if !@user
        $('.user-info').fadeOut()
