123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <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">
- <title>{%- block title -%}{%- endblock -%}</title>
- {% assets "home_js" -%}
- <script type="text/javascript" src="{{ ASSET_URL }}"></script>
- {%- endassets %}
- {% assets "home_css" -%}
- <link rel="stylesheet" href="{{ ASSET_URL }}" />
- {%- endassets %}
- <script type="text/javascript" charset="utf-8">
- $(document).ready(function(){
- $("#showerror").hide();
- $('button#hide').click(function(){
- $("#showerror").hide();
- });
- var csrftoken = "{{ csrf_token() }}"
- $.ajaxSetup({
- beforeSend: function(xhr, settings) {
- if (!/^(GET|HEAD|OPTIONS|TRACE)$/i.test(settings.type) && !this.crossDomain) {
- xhr.setRequestHeader("X-CSRFToken", csrftoken)
- }
- }
- });
- });
- </script>
- <style type="text/css" media="all">
- html,body{height:100%}
- img {width:100%}
- .container {width:100%;}
- .footer {margin-top:-30px;height:30px;}
- .wrap{min-height:100%}
- .main{padding-bottom:30px;overflow:hidden;}
- li {
- list-style-type:none;
- }
- select {
- background-color: #fff;
- border-color: #c6c6c6;
- color: #141414;
- }
- .category {
- margin-bottom:15px;
- padding:15px;
- background:#fff;
- border:1px solid #ddd;
- box-shadow:0px 0px 1px #ddd;
- border-radius: 3px;
- }
- .tags {
- color:#999;
- }
- </style>
- </head>
- <body style="background:#f8f8f8;">
- <div class="wrap">
- <div class="main">
- <nav class="navbar navbar-default col-md-offset-1 col-md-10" style="background:#fff;padding:10px;margin-bottom:0;">
- <div class="container-fluid">
- <div class="navbar-header" style="margin-right:15px">
- <a class="navbar-brand" href="{{ url_for('forums.index') }}" style="padding:0">
- <img src="{{ url_for('static',filename='images/hehai.png') }}" style="height:100%;width:auto;" alt="title">
- </a>
- </div>
- <div class="navbar-text" style="margin:0">
- <h3 style="color:#EB5424;margin-top:5px;">河海大学论坛</h3>
- <span style="font-size:12px;color:#999;">艰苦朴素、实事求是、严格要求、勇于探索</span>
- </div>
- </div>
- </nav>
- <div class="col-md-offset-1 col-md-10" style="padding:0;">
- {% with messages = get_flashed_messages() %}
- {% if messages %}
- <div class="alert alert-info" style="padding:8px">
- <button type="button" class="close" data-dismiss="alert" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- <ul>
- {% for message in messages %}
- <li>{{ message }} </li>
- {% endfor %}
- </ul>
- </div>
- {% endif %}
- {% endwith %}
- {% if g.user.is_authenticated %}
- <div class="btn-group " style="float:right">
- <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- {{ current_user.name }} <span class="caret"></span>
- </button>
- <ul class="dropdown-menu">
- <li><a href="{{ url_for('user.index',user_url=current_user.name) }}">我的主页</a></li>
- <li><a href="{{ url_for('user.setting',user_url=current_user.name) }}">帐号设置</a></li>
- <li role="separator" class="divider" style="margin-bottom:0;"></li>
- <li><a href="{{ url_for('auth.logout') }}">退出</a></li>
- </ul>
- </div>
- {% else %}
- <a href="{{ url_for('auth.register') }}" class="btn btn-sm btn-primary" style="float:right;">注册</a>
- <a href="{{ url_for('auth.login') }}" class="btn btn-sm btn-primary" style="float:right">登陆</a>
- {% endif %}
- <a href="{{ url_for('group.index') }}"><span class="btn btn-sm btn-primary" style="float:right">用户组</span></a>
- <span class="btn btn-sm btn-primary" style="float:right">用户列表</span>
- <span class="btn btn-sm btn-primary" style="float:right">帮助中心</span>
- {% block content %}{% endblock %}
- </div>
- </div>
- </div>
- <div class="footer col-md-offset-1 col-md-10" style="padding:0">
- <span style="font-size:12px;color:#999;float:left">
- <span>当前在线用户:<strong style="color:#333;">{{ 'all_counts' | load_online_users }}</strong></span>
- <span style="margin-left:10px">注册用户:<strong style="color:#333;">{{ 'sign_counts' | load_online_users }}</strong></span>
- <span style="margin-left:10px">当前访客:<strong style="color:#333;">{{ 'counts' | load_online_users }}</strong></span>
- <span style="margin-left:10px">最高在线:<strong style="color:#333;">{{ 'high' | load_online_users }}</strong></span>
- <span style="margin-left:10px">最高在线时间:<strong style="color:#333;">{{ 'high_time' | load_online_users }}</strong></span>
- </span>
- <span style="float:right">
- <span style="font-size:12px;">
- Copyright © 2015-2016 honmaple.
- </span>
- </span>
- </div>
- </body>
- </html>
|