<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="/static/favicon.ico"/>
    <title>${handler.get_portal_name()}</title>
    <link href="/static/css/bootstrap.min.css" rel="stylesheet" media="all">
    <link href="/static/css/plogin.css" rel="stylesheet" media="all">     
    <link href="/static/css/portal.css" rel="stylesheet" media="all">   
    <script src="/static/js/jquery-1.11.0.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]>
    <script src="/static/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="/static/js/html5shiv.min.js"></script>
    <script src="/static/js/respond.min.js"></script>
    <![endif]-->
    ${self.head()}
  </head>

  <body>

    <div class="container">
      <div class="header clearfix">
        <nav>
          <ul class="nav nav-pills pull-right">
            % if not handler.current_user:
            <li role="presentation"><a href="/login">用户认证</a></li>
            % else:
            <!-- <li role="presentation"><a href="javascript:void(0);">00:00:00</a></li> -->
            <li role="presentation"><a href="/">${handler.current_user.username}</a></li>
            <li role="presentation"><a href="/logout">断开连接</a></li>
            % endif
          </ul>
        </nav>
        <h3 class="text-muted">${handler.get_portal_name()}</h3>
      </div>
      
      ${self.main()}

      <footer class="footer">
        <p>&copy; Company 2015</p>
      </footer>

    </div> <!-- /container -->


    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="/static/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>