<!doctype html>
<title>{% block page_title %}{% endblock %} - 台州台风暴雨分型数据库</title>
<link rel="icon" href="http://qiniu.xuye.site/auto_upload/20200105213253_9aylA6_logo.jpeg" type="image/x-icon"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
<nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <a class="navbar-brand" href="#">
        <img alt="台州台风暴雨分型数据库" src="http://qiniu.xuye.site/auto_upload/20200105223007_xCUAeo_logo2.jpeg" style="width: 100px;">
      </a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="#" style="color: #000; font-size:28px">台州台风暴雨天气分析数据库</a></li>
        {% if g.user %}
        <li><a href="{{ url_for('data.parting_intro') }}">天气分型介绍</a></li>
        <li><a href="{{ url_for('data.landing_intro') }}">台风暴雨落区形态</a></li>
        <li><a href="{{ url_for('data.query') }}">个例数据库查询</a></li>
        <li><a href="{{ url_for('data.add_item') }}">新个例添加</a></li>
        {% endif %}
      </ul>
      <ul class="nav navbar-nav navbar-right">
        {% if g.user %}
        <li><a href="#">{{ g.user['username'] }}</a></li>
        <li><a href="{{ url_for('auth.logout') }}">退出</a></li>
        {% else %}
        <li><a href="{{ url_for('auth.login') }}">登录</a></li>
        {% endif %}
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
<section class="content">
  {% for message in get_flashed_messages() %}
    <div class="flash">{{ message }}</div>
  {% endfor %}
  {% block content %}{% endblock %}
</section>