extends layout/layout.pug 

block form-header
  h1 Sign in

block content
  img(class="header-img" src="/img/success.png" alt="success")
  if redirection_url
    p You are already logged in as <b>#{ username }</b>.<br/><br/>
      | If you are not redirected in few seconds, click <a href="#{ redirection_url }">here</a>.<br/><br/>
      | Otherwise, click <a href="#{ logout_endpoint }">here</a> to log off.
  else
    p You are already logged in as <b>#{ username }</b>.<br/><br/>
      | Click <a href="#{ logout_endpoint }">here</a> to log off.
