extend layout

block content
  h1= user

  if userOp
    p This user is an operator

  if op && !userOp && !banned
    form(method='post', action='/ban')
      input(type='hidden', name='phone', value='#{phone}')
      input(type='hidden', name='uid', value='#{uid}')
      input(type='hidden', name='crumb', value='#{crumb}')
      button.ban(type='submit') ban this account

  if banned
    p This account is currently banned.

    if op
      form(method='post', action='/unban')
        input(type='hidden', name='phone', value='#{phone}')
        input(type='hidden', name='uid', value='#{uid}')
        input(type='hidden', name='crumb', value='#{crumb}')
        button.unban(type='submit') unban this account

  h2 websites
  ul.websites
    li!= websites

  h2 bio
  p!= bio

  h2 recent posts
  #posts
    for post in posts
      article
        time
          a(href='/post/#{post.key}')= post.value.created
        pre!= post.value.content
    .pagination
      if next && lastKey
        a(href='/user/#{uid}?last=#{lastKey}') older

block login

extend layout

block content
  h1= user

  if userOp
    p This user is an operator

  if op && !userOp && !banned
    form(method='post', action='/ban')
      input(type='hidden', name='phone', value='#{phone}')
      input(type='hidden', name='uid', value='#{uid}')
      input(type='hidden', name='crumb', value='#{crumb}')
      button.ban(type='submit') ban this account

  if banned
    p This account is currently banned.

    if op
      form(method='post', action='/unban')
        input(type='hidden', name='phone', value='#{phone}')
        input(type='hidden', name='uid', value='#{uid}')
        input(type='hidden', name='crumb', value='#{crumb}')
        button.unban(type='submit') unban this account

  h2 websites
  ul.websites
    li!= websites

  h2 bio
  pre!= bio

  h2 recent posts
  #posts
    for post in posts
      article
        time
          a(href='/post/#{post.key}')= post.value.created
        pre!= post.value.content
    .pagination
      if next && lastKey
        a(href='/user/#{uid}?last=#{lastKey}') older

block login

Put bios inside a <pre> instead of a <p>
Put bios inside a <pre> instead of a <p>

Just like the posts. This we can have ASCII art in bios. Fixes #36.
