From e53d7e3bc2b2b62318efbfa5a359b117240a3864 Mon Sep 17 00:00:00 2001
From: Kumi
Date: Sun, 23 Jun 2024 09:05:29 +0200
Subject: [PATCH] fix(templates): enhance login/signup and identifier creation
links
Updated the login button text to "Login or Sign Up" for clarity and removed the redundant "Email Login" option on the home page. Fixed the identifier list to properly handle cases where 'suffix' might be null, ensuring correct URL generation and display formatting. These changes improve user experience and address navigation issues.
---
freedoi/resolver/templates/resolver/home.html | 5 +----
freedoi/resolver/templates/resolver/identifier_list.html | 6 +++---
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/freedoi/resolver/templates/resolver/home.html b/freedoi/resolver/templates/resolver/home.html
index 67710b0..1198898 100644
--- a/freedoi/resolver/templates/resolver/home.html
+++ b/freedoi/resolver/templates/resolver/home.html
@@ -73,10 +73,7 @@
Ready to get started? Create an account or log in to begin managing your
DOIs.
- Login
- Email Login
+ Login or Sign Up
{% endif %}
diff --git a/freedoi/resolver/templates/resolver/identifier_list.html b/freedoi/resolver/templates/resolver/identifier_list.html
index ed24cd7..97e4b9e 100644
--- a/freedoi/resolver/templates/resolver/identifier_list.html
+++ b/freedoi/resolver/templates/resolver/identifier_list.html
@@ -1,12 +1,12 @@
{% extends "base_generic.html" %} {% block title %}Identifiers{% endblock %}
{% block content %}
-
Identifiers for {{ suffix.name }}
+
Identifiers{% if suffix %} for {{ suffix.name }}{% endif %}
Create new identifier