doctype html

head
  meta name="viewport" content="width=device-width, initial-scale=1.0"
  link rel="stylesheet" type="text/css" href=asset_path("application.css")
  script src=asset_path("application.js")

body
  .navbar.navbar-static-top
    .navbar-inner
      .brand
        - if current_user
          a href==current_user.entity = current_user.entity.sub(%r{\Ahttps?://([^/]+).*?\z}) { |m| $1 }
        - else
          a href='https://tent.is' Tent.is

      ul.nav
        - if current_user
          li
            a href==current_user.entity Posts
          li
            a href=full_path('/followers') Followers
          li
            a href=full_path('/followings') Following
          li.active
            a href=full_path('/admin') Account
        - else
          li
            a href='https://tent.is/blog' Blog

      ul.nav.pull-right
        - if current_user
          li
            a href=full_path('/signout') Signout
        - else
          li
            a href='https://tent.is/login' Login
          li
            a href='https://tent.is/signup' Signup

  .container
    == yield

doctype html

head
  meta name="viewport" content="width=device-width, initial-scale=1.0"
  link rel="stylesheet" type="text/css" href=asset_path("application.css")
  script src=asset_path("application.js")

body
  .navbar.navbar-static-top
    .navbar-inner
      .brand
        - if current_user
          a href==current_user.entity = current_user.entity.sub(%r{\Ahttps?://([^/]+).*?\z}) { |m| $1 }
        - else
          a href='https://tent.is' Tent.is

      ul.nav
        - if current_user
          li
            a href==current_user.entity Posts
          li
            a href==full_path("/entities/#{URI.encode_www_form_component(current_user.entity)}") View Profile
          li
            a href=full_path('/followers') Followers
          li
            a href=full_path('/followings') Following
          li.active
            a href=full_path('/admin') Account
        - else
          li
            a href='https://tent.is/blog' Blog

      ul.nav.pull-right
        - if current_user
          li
            a href=full_path('/signout') Signout
        - else
          li
            a href='https://tent.is/login' Login
          li
            a href='https://tent.is/signup' Signup

  .container
    == yield

Update nav: add view profile link
Update nav: add view profile link

tent/tentd-admin,tent/tentd-admin