Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f13e26
commit 677cf00
Showing
9 changed files
with
135 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
This is going to need private messages. Those will exist within circles too. | ||
|
||
|
||
Okay, invitations. You send an email with a link in it. The link should just contain a single hash. All the relevant info would be in the database. | ||
|
||
Invitation: | ||
uid | ||
circle_id | ||
inviter_id - person who invited you. Automatically establishes trust with this user | ||
|
||
You might have an account already, or not. Hm. I need to handle logins now. | ||
Also figure out email. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
label {display:block} | ||
html {font-family:helvetica} | ||
a {color:blue; cursor:pointer; text-decoration:none} | ||
a:hover {text-decoration:underline} | ||
ul {margin:0; padding:0; list-style:none} | ||
.discussion {background-color:#eee; margin:1ex; padding:0} | ||
.thread {margin-left:5ex} | ||
input[type=text], textarea {font-family:inherit; font-size:inherit} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block content %} | ||
|
||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% macro form_field(field) %} | ||
<div>{{field.label}}</div> | ||
<div>{{field}}</div> | ||
{% if field.description %} | ||
<div>{{field.description}}</div> | ||
{% endif %} | ||
{% if field.errors %} | ||
<ul class="errors"> | ||
{% for error in field.errors %} | ||
<li>{{error}}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</div> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% from 'forms.html' import form_field %} | ||
{% block content %} | ||
|
||
<form action="{{url_for('login')}}" method="POST"> | ||
{% for field in form %} | ||
{{ form_field(field) }} | ||
{% endfor %} | ||
<button name="action" value="login">Login</button> or | ||
<button name="action" value="register">Register</button> | ||
</form> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters