Basic templates
parent
489c646b58
commit
625e7b1a6f
|
@ -1,66 +1,52 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<meta charset="utf-8">
|
||||||
|
<title>GDQ Quick Schedule {% block title %}{% endblock %}</title>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
<link href="//maxcdn.bootstrapcdn.com/bootswatch/3.3.1/yeti/bootstrap.min.css" rel="stylesheet" media="screen">
|
||||||
|
<link href="{{url_for('static', filename='main.css')}}" rel="stylesheet" media="screen">
|
||||||
|
|
||||||
<head>
|
{% include 'header.html' %}
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Flask Skeleton{% block title %}{% endblock %}</title>
|
|
||||||
<!-- meta -->
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
||||||
<!-- styles -->
|
|
||||||
<link href="//maxcdn.bootstrapcdn.com/bootswatch/3.3.1/yeti/bootstrap.min.css" rel="stylesheet" media="screen">
|
|
||||||
<link href="{{url_for('static', filename='main.css')}}" rel="stylesheet" media="screen">
|
|
||||||
{% block css %}{% endblock %}
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
<div class="site-content">
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
{% include 'header.html' %}
|
<!-- messages -->
|
||||||
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||||
<div class="site-content">
|
{% if messages %}
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<!-- messages -->
|
|
||||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
||||||
{% if messages %}
|
|
||||||
<br>
|
<br>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
{% for category, message in messages %}
|
{% for category, message in messages %}
|
||||||
<div class="alert alert-{{ category }}">
|
<div class="alert alert-{{ category }}">
|
||||||
<a class="close" title="Close" href="#" data-dismiss="alert">×</a>
|
<a class="close" title="Close" href="#" data-dismiss="alert">×</a>
|
||||||
{{message}}
|
{{message}}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
|
|
||||||
<!-- child template -->
|
<!-- child template -->
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<!-- errors -->
|
<!-- errors -->
|
||||||
{% if error %}
|
{% if error %}
|
||||||
<p class="error"><strong>Error:</strong> {{ error }}</p>
|
<p class="error"><strong>Error:</strong> {{ error }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
{% include 'footer.html' %}
|
{% include 'footer.html' %}
|
||||||
|
|
||||||
<!-- scripts -->
|
<!-- scripts -->
|
||||||
<script src="//code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script>
|
<script src="//code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script>
|
||||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js" type="text/javascript"></script>
|
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js" type="text/javascript"></script>
|
||||||
<script src="{{url_for('static', filename='main.js')}}" type="text/javascript"></script>
|
<script src="{{url_for('static', filename='main.js')}}" type="text/javascript"></script>
|
||||||
{% block js %}{% endblock %}
|
{% block js %}{% endblock %}
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<footer>
|
<footer>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<small>
|
<small>
|
||||||
<span>© <a href="mailto:michael@realpython.com">Real Python</a></span>
|
<span>Brought to you by <a href="mailto:ilianaw@buttslol.net">Iliana Weller</a>
|
||||||
|
& <a href="mailto:ryan@whatthefuck.computer">Ryan Rix</a>. Based on Python Flask skeleton
|
||||||
|
created by <a href="mailto:michael@realpython.com">Real Python</a>.</span>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
<!-- Navigation -->
|
<!-- Navigation -->
|
||||||
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- Brand and toggle get grouped for better mobile display -->
|
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
@ -10,26 +9,13 @@
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand" href="{{ url_for('main.home') }}">Flask-Skeleton</a>
|
<a class="navbar-brand" href="{{ url_for('main.home') }}">GDQ Quick Schedule</a>
|
||||||
</div>
|
</div>
|
||||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li><a href="{{ url_for('main.about') }}">About</a></li>
|
<li><a href="{{ url_for('main.about') }}">About</a></li>
|
||||||
{% if current_user.is_authenticated %}
|
|
||||||
<li><a href="{{ url_for('user.members') }}">Members</a></li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
{% if current_user.is_authenticated %}
|
|
||||||
<li><a href="{{ url_for('user.logout') }}">Logout</a></li>
|
|
||||||
{% else %}
|
|
||||||
<li><a href="{{ url_for('user.login') }}"><span class="glyphicon glyphicon-user"></span> Register/Login</a></li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.navbar-collapse -->
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.container -->
|
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -5,6 +5,35 @@
|
||||||
<div class="body-content">
|
<div class="body-content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h1>About</h1>
|
<h1>About</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
GDQ dot moe allows you to pick the GDQ speedruns you're interested in watching, and provides a
|
||||||
|
short, easily shareable link with those speedruns listed. Share it with friends, send it to
|
||||||
|
your phone, do whatever you want with it.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
GDQ dot moe was built in a frenzied pace hours before Summer Games Done Quick 2017 by <a href="https://ilianaw.net" target="_blank">Iliana Weller</a> and <a href="http://whatthefuck.computer" target="_blank">Ryan Rix</a>. GDQ dot moe is Free and Open Source software, and you can get the live code <a href="http://gdq.moe/code">here</a>, or clone it on <a href="https://github.com/rrix/kappa123">GitHub</a>{% extends "_base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<div class="body-content">
|
||||||
|
<div class="row">
|
||||||
|
<h1>About</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
GDQ dot moe allows you to pick the GDQ speedruns you're interested in watching, and provides a
|
||||||
|
short, easily shareable link with those speedruns listed. Share it with friends, send it to
|
||||||
|
your phone, do whatever you want with it.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
GDQ dot moe was built in a frenzied pace hours before Summer Games Done Quick 2017 by <a href="https://ilianaw.net" target="_blank">Iliana Weller</a> and <a href="http://whatthefuck.computer" target="_blank">Ryan Rix</a>. GDQ dot moe is Free and Open Source software, and you can get the live code <a href="http://gdq.moe/code">here</a>, or clone it on <a href="https://github.com/rrix/kappa123">GitHub</a>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue