From d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 5 Nov 2022 14:17:27 -0600 Subject: Initial commit (users and statuses) --- templates/404.html | 6 ++++++ templates/auth/login.html | 11 +++++++++++ templates/base.html | 34 ++++++++++++++++++++++++++++++++++ templates/identity/create.html | 12 ++++++++++++ templates/identity/select.html | 17 +++++++++++++++++ templates/identity/view.html | 13 +++++++++++++ templates/index.html | 9 +++++++++ templates/statuses/_status.html | 10 ++++++++++ templates/statuses/home.html | 15 +++++++++++++++ 9 files changed, 127 insertions(+) create mode 100644 templates/404.html create mode 100644 templates/auth/login.html create mode 100644 templates/base.html create mode 100644 templates/identity/create.html create mode 100644 templates/identity/select.html create mode 100644 templates/identity/view.html create mode 100644 templates/index.html create mode 100644 templates/statuses/_status.html create mode 100644 templates/statuses/home.html (limited to 'templates') diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..6777ecb --- /dev/null +++ b/templates/404.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} + +{% block content %} +

Page Not Found

+

Sorry about that.

+{% endblock %} diff --git a/templates/auth/login.html b/templates/auth/login.html new file mode 100644 index 0000000..f8e1c9d --- /dev/null +++ b/templates/auth/login.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% load crispy_forms_tags %} + +{% block title %}Login{% endblock %} + +{% block content %} + +{% endblock %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..79a5e87 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,34 @@ + + + + {% block title %}{% endblock %} - {{ config.site_name }} + + + {% load static %} + + + + {% block extra_head %}{% endblock %} + + + +
+

{{ config.site_name }}

+ +
  • + {% if user.is_authenticated %} + {{ user.email }} + {% else %} + Login + {% endif %} +
  • +
    +
    + +
    + {% block content %} + {% endblock %} +
    + + + diff --git a/templates/identity/create.html b/templates/identity/create.html new file mode 100644 index 0000000..cbf0fb2 --- /dev/null +++ b/templates/identity/create.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% load crispy_forms_tags %} + +{% block title %}Create Identity{% endblock %} + +{% block content %} + +{% endblock %} diff --git a/templates/identity/select.html b/templates/identity/select.html new file mode 100644 index 0000000..f5be401 --- /dev/null +++ b/templates/identity/select.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block title %}Select Identity{% endblock %} + +{% block content %} + +{% endblock %} diff --git a/templates/identity/view.html b/templates/identity/view.html new file mode 100644 index 0000000..f0a8a02 --- /dev/null +++ b/templates/identity/view.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block title %}{{ identity }}{% endblock %} + +{% block content %} +

    {{ identity }} {{ identity.handle }}

    + + {% for status in statuses %} + {% include "statuses/_status.html" %} + {% empty %} + No statuses yet. + {% endfor %} +{% endblock %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..dfd1805 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block title %}Welcome{% endblock %} + +{% block content %} + {% for identity in identities %} + {{ identity }} + {% endfor %} +{% endblock %} diff --git a/templates/statuses/_status.html b/templates/statuses/_status.html new file mode 100644 index 0000000..6e61fd9 --- /dev/null +++ b/templates/statuses/_status.html @@ -0,0 +1,10 @@ +
    +

    + + {{ status.identity }} + {{ status.identity.short_handle }} + +

    + + {{ status.text | linebreaks }} +
    diff --git a/templates/statuses/home.html b/templates/statuses/home.html new file mode 100644 index 0000000..e47ccfd --- /dev/null +++ b/templates/statuses/home.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} +{% load crispy_forms_tags %} + +{% block title %}Home{% endblock %} + +{% block content %} + + {% crispy form form.helper %} + + {% for status in statuses %} + {% include "statuses/_status.html" %} + {% empty %} + No statuses yet. + {% endfor %} +{% endblock %} -- cgit v1.2.3