Added snippet database to the website.
This commit is contained in:
parent
a81cf3a67c
commit
0ab7a9cb67
22 changed files with 825 additions and 118 deletions
27
flask_website/templates/general/first_login.html
Normal file
27
flask_website/templates/general/first_login.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{% extends "layout.html" %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<style type=text/css>
|
||||
h1 { background-image: url(/static/login.png); }
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% block title %}First Login{% endblock %}
|
||||
{% block body %}
|
||||
<h2>This is your First Login</h2>
|
||||
<form action="{{ url_for('general.first_login') }}" method=post>
|
||||
<p>
|
||||
This is your first login on this website. You are about to sign
|
||||
in with the following OpenID: <a href="{{ openid }}">{{ openid }}</a>
|
||||
<p>
|
||||
Before you can use this site we need a name for you. This is what
|
||||
will be displayed next to all of your public contributions to this
|
||||
site. Choose wisely because you cannot change this value later:
|
||||
<dl>
|
||||
<dt>Name:
|
||||
<dd><input type=text name=name size=30>
|
||||
</dl>
|
||||
<p>
|
||||
<input type=submit value=Continue>
|
||||
<input type=submit name=cancel value=Cancel>
|
||||
</form>
|
||||
{% endblock %}
|
||||
22
flask_website/templates/general/login.html
Normal file
22
flask_website/templates/general/login.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{% extends "layout.html" %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<style type=text/css>
|
||||
h1 { background-image: url(/static/login.png); }
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% block title %}Login{% endblock %}
|
||||
{% block body %}
|
||||
<form action="{{ url_for('general.login') }}" method=post>
|
||||
<p>
|
||||
For some of the features on this site (such as creating snippets
|
||||
or adding comments) you have to be signed in. You don't need to
|
||||
create an account on this website, just sign in with an existing
|
||||
<a href=http://openid.net/>OpenID</a> account.
|
||||
<p>
|
||||
OpenID URL:
|
||||
<input type=text name=openid class=openid size=30>
|
||||
<input type=hidden name=next value="{{ request.values.next or request.referrer }}">
|
||||
<input type=submit value=Login>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue