From ff9c4b65787fda704429815e8aaf743e83c14bd1 Mon Sep 17 00:00:00 2001 From: Codimp Date: Sat, 1 Jun 2024 23:57:37 +0200 Subject: [PATCH] Improve titles and Open Graph properties (#619) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * template: add specific titles with a fallback to "εxodus" * template: add open graph titles with type, site_name and image * template: add open graph description * template: fix extra space --- exodus/analysis_query/templates/query_error.html | 6 ++++++ exodus/analysis_query/templates/query_submit.html | 6 ++++++ exodus/analysis_query/templates/query_upload.html | 6 ++++++ exodus/analysis_query/templates/query_wait.html | 6 ++++++ exodus/reports/templates/report_details.html | 8 ++++++++ exodus/reports/templates/reports_home.html | 6 ++++++ exodus/reports/templates/reports_list.html | 13 +++++++++++++ exodus/trackers/templates/stats_details.html | 6 ++++++ exodus/trackers/templates/tracker_details.html | 6 ++++++ exodus/trackers/templates/trackers_list.html | 6 ++++++ exodus/web/templates/base/base.html | 8 +++++++- exodus/web/templates/base/home.html | 8 +++++++- exodus/web/templates/base/next.html | 6 ++++++ exodus/web/templates/base/organization.html | 6 ++++++ exodus/web/templates/base/permissions.html | 6 ++++++ exodus/web/templates/base/trackers.html | 6 ++++++ exodus/web/templates/base/understand.html | 6 ++++++ 17 files changed, 113 insertions(+), 2 deletions(-) diff --git a/exodus/analysis_query/templates/query_error.html b/exodus/analysis_query/templates/query_error.html index d7261bcf..f04efb87 100644 --- a/exodus/analysis_query/templates/query_error.html +++ b/exodus/analysis_query/templates/query_error.html @@ -1,4 +1,10 @@ {% extends "base/base.html"%} +{% block head %} + + + + {% trans "New analysis" %} - εxodus +{% endblock %} {% block content %}
diff --git a/exodus/analysis_query/templates/query_submit.html b/exodus/analysis_query/templates/query_submit.html index 11d835c0..93a94abf 100644 --- a/exodus/analysis_query/templates/query_submit.html +++ b/exodus/analysis_query/templates/query_submit.html @@ -2,6 +2,12 @@ {% load i18n %} {% load static %} {% get_current_language as LANGUAGE_CODE %} +{% block head %} + + + + {% trans "New analysis" %} - εxodus +{% endblock %} {% block content %}
diff --git a/exodus/analysis_query/templates/query_upload.html b/exodus/analysis_query/templates/query_upload.html index c2a6f849..bc0bb4aa 100644 --- a/exodus/analysis_query/templates/query_upload.html +++ b/exodus/analysis_query/templates/query_upload.html @@ -2,6 +2,12 @@ {% load i18n %} {% load static %} {% get_current_language as LANGUAGE_CODE %} +{% block head %} + + + + {% trans "New analysis" %} - εxodus +{% endblock %} {% block content %}
diff --git a/exodus/analysis_query/templates/query_wait.html b/exodus/analysis_query/templates/query_wait.html index a565aa2a..80053230 100644 --- a/exodus/analysis_query/templates/query_wait.html +++ b/exodus/analysis_query/templates/query_wait.html @@ -2,6 +2,12 @@ {% load i18n %} {% load static %} {% get_current_language as LANGUAGE_CODE %} +{% block head %} + + + + {% trans "New analysis" %} - εxodus +{% endblock %} {% block content %}
diff --git a/exodus/reports/templates/report_details.html b/exodus/reports/templates/report_details.html index 8e9d2069..d1605626 100644 --- a/exodus/reports/templates/report_details.html +++ b/exodus/reports/templates/report_details.html @@ -1,6 +1,14 @@ {% extends "base/base.html"%} {% load i18n %} {% get_current_language as LANGUAGE_CODE %} +{% block head %} + {% if report %} + + + + {% trans "Report for" %} {{ report.application.handle }} {{ report.application.version }} - εxodus + {% endif %} +{% endblock %} {% block content %} {% load static %} {% if report %} diff --git a/exodus/reports/templates/reports_home.html b/exodus/reports/templates/reports_home.html index 5c655b51..6a5b12f2 100644 --- a/exodus/reports/templates/reports_home.html +++ b/exodus/reports/templates/reports_home.html @@ -1,6 +1,12 @@ {% extends "base/base.html" %} {% load i18n %} {% get_current_language as LANGUAGE_CODE %} +{% block head %} + + + + {% trans "Reports" %} - εxodus +{% endblock %} {% block content %} {% load static %}
diff --git a/exodus/reports/templates/reports_list.html b/exodus/reports/templates/reports_list.html index 2d12cfef..ffd2e3dd 100644 --- a/exodus/reports/templates/reports_list.html +++ b/exodus/reports/templates/reports_list.html @@ -1,6 +1,19 @@ {% extends "base/base.html" %} {% load i18n %} {% get_current_language as LANGUAGE_CODE %} +{% block head %} + {% if handle %} + + + + {% trans "Reports list for" %} {{ handle }} - εxodus + {% else %} + + + + {% trans "Reports list" %} - εxodus + {% endif %} +{% endblock %} {% block content %} {% load static %}
diff --git a/exodus/trackers/templates/stats_details.html b/exodus/trackers/templates/stats_details.html index 4496e5c3..86a82216 100644 --- a/exodus/trackers/templates/stats_details.html +++ b/exodus/trackers/templates/stats_details.html @@ -1,5 +1,11 @@ {% extends "base/base.html" %} {% load i18n %} +{% block head %} + + + + {% trans "Statistics" %} - εxodus +{% endblock %} {% block content %} {% load static %}
diff --git a/exodus/trackers/templates/tracker_details.html b/exodus/trackers/templates/tracker_details.html index 9221c72f..6c003dc9 100644 --- a/exodus/trackers/templates/tracker_details.html +++ b/exodus/trackers/templates/tracker_details.html @@ -1,6 +1,12 @@ {% extends "base/base.html" %} {% load i18n %} {% load markdown %} +{% block head %} + + + + {% trans "Tracker profile for" %} {{ tracker.name }} - εxodus +{% endblock %} {% block content %}