+
+ {% block title %}{% endblock %}
+
+
+
+{% block content %}{% endblock %}
+
+
\ No newline at end of file
diff --git a/src/djangooidc/templates/djangooidc/error.html b/src/djangooidc/templates/djangooidc/error.html
new file mode 100644
index 000000000..8e092b60b
--- /dev/null
+++ b/src/djangooidc/templates/djangooidc/error.html
@@ -0,0 +1,33 @@
+{% extends "djangooidc/base.html" %}
+
+{% block title %}Error{% endblock %}
+
+{% block content %}
+
+
OpenID Connect authentication has failed
+
+
Error message is: {{ error }}
+ {% if callback %}
+
Query content was:
+
+
+
+
+
Key
+
Value
+
+
+
+ {% for key,value in callback.items %}
+
+
{{ key }}
+
{{ value }}
+
+ {% endfor %}
+
+
+
+ {% endif %}
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/src/djangooidc/templates/djangooidc/login.html b/src/djangooidc/templates/djangooidc/login.html
new file mode 100644
index 000000000..26e09886f
--- /dev/null
+++ b/src/djangooidc/templates/djangooidc/login.html
@@ -0,0 +1,36 @@
+{% extends "djangooidc/base.html" %}
+{% block title %}Login{% endblock %}
+{% block content %}
+
+
Please log in with one of the following methods:
+
+
Application login
+
+
+
+ {% if op_list %}
+
+
Log in with one of the following systems
+ {% for op_name in op_list %}
+ {{ op_name }}
+ {% endfor %}
+
+ {% endif %}
+
+ {% if dynamic %}
+
+
Log in in with an OpenID Connect provider of your choice
+
+
+ {% endif %}
+
+{% endblock %}
\ No newline at end of file
diff --git a/src/docker-compose.yml b/src/docker-compose.yml
index d104a4c15..e034fb869 100644
--- a/src/docker-compose.yml
+++ b/src/docker-compose.yml
@@ -10,10 +10,6 @@ services:
- db
working_dir: /app
entrypoint: python /app/docker_entrypoint.py
- deploy:
- restart_policy:
- condition: on-failure
- max_attempts: 5
environment:
# Send stdout and stderr straight to the terminal without buffering
- PYTHONUNBUFFERED=yup
@@ -36,8 +32,7 @@ services:
- "8080:8080"
# command: "python"
command: >
- bash -c " python manage.py migrate &&
- python manage.py runserver 0.0.0.0:8080"
+ bash -c " python manage.py migrate && python manage.py runserver 0.0.0.0:8080"
db:
image: postgres:latest
diff --git a/src/registrar/assets/sass/_theme/_uswds-theme-custom-styles.scss b/src/registrar/assets/sass/_theme/_uswds-theme-custom-styles.scss
index aab929a51..74ad72cad 100644
--- a/src/registrar/assets/sass/_theme/_uswds-theme-custom-styles.scss
+++ b/src/registrar/assets/sass/_theme/_uswds-theme-custom-styles.scss
@@ -26,4 +26,3 @@ i.e.
p {
color: color('blue-10v');
}
-
diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py
index b17a0e4ce..422e224e2 100644
--- a/src/registrar/config/settings.py
+++ b/src/registrar/config/settings.py
@@ -164,6 +164,7 @@ TEMPLATES = [
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"registrar.context_processors.language_code",
+ "registrar.context_processors.canonical_path",
],
},
},
diff --git a/src/registrar/config/urls.py b/src/registrar/config/urls.py
index 95802704f..37a0d754c 100644
--- a/src/registrar/config/urls.py
+++ b/src/registrar/config/urls.py
@@ -7,7 +7,7 @@ For more information see:
from django.contrib import admin
from django.urls import include, path
-from registrar.views import health, index
+from registrar.views import health, index, whoami
urlpatterns = [
path("", index.index, name="home"),
diff --git a/src/registrar/context_processors.py b/src/registrar/context_processors.py
index 6e104b66d..51a420fca 100644
--- a/src/registrar/context_processors.py
+++ b/src/registrar/context_processors.py
@@ -11,3 +11,12 @@ def language_code(request):
TEMPLATES dict of our settings file).
"""
return {"LANGUAGE_CODE": settings.LANGUAGE_CODE}
+
+def canonical_path(request):
+ """Add a canonical URL to the template context.
+
+ To make a correct "rel=canonical" link in the HTML page, we need to
+ construct an absolute URL for the page, and we can't do that in the
+ template itself, so we do it here and pass the information on.
+ """
+ return {"CANONICAL_PATH": request.build_absolute_uri(request.path)}
diff --git a/src/registrar/templates/base.html b/src/registrar/templates/base.html
index 3c303013d..39cc31809 100644
--- a/src/registrar/templates/base.html
+++ b/src/registrar/templates/base.html
@@ -7,28 +7,26 @@
{% block title %}{% endblock %}
- {{ site.name }}
+ .gov Registrar
{% block extra_title %}{% endblock %}
{% block viewport_meta %}
-
+
{% endblock %}
{% block extra_meta %}{% endblock extra_meta %}
- {# TO-DO: Determine if is desirable #}
-
{# TO-DO: set defaults for these #}
{% block css %}
-
-
+
+
{% endblock %}
{% block canonical %}
-
+
{% endblock %}
@@ -49,154 +47,136 @@
Skip to main content
-
-
-
-
-
-
-
-
-
- An official website of the United States government
-
-
- Here’s how you know
-
-
-
-
-
-
-
-
-
-
-
- Official websites use .gov A
- .gov website belongs to an official government
- organization in the United States.
+
+
+
+
+
+
+
+
+
+ An official website of the United States government
+
+
+ Here’s how you know
+
-
-
-
-
- Secure .gov websites use HTTPS A
- lock (
- ) or https:// means you’ve safely connected to
- the .gov website. Share sensitive information only on official,
- secure websites.
-
+
+
+
+
+
+
+
+ Official websites use .gov A
+ .gov website belongs to an official government
+ organization in the United States.
+
+
+
+
+
+
+
+ Secure .gov websites use HTTPS A
+ lock (
+ ) or https:// means you’ve safely connected to
+ the .gov website. Share sensitive information only on official,
+ secure websites.
+