Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve titles and Open Graph properties #619

Merged
merged 5 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions exodus/analysis_query/templates/query_error.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{% extends "base/base.html"%}
{% block head %}
<meta property="og:description" content="{% trans "Error during an analysis" %}">
<meta name="description" content="{% trans "Error during an analysis" %}">
<meta property="og:title" content="{% trans "New analysis" %}">
<title>{% trans "New analysis" %} - εxodus</title>
{% endblock %}
{% block content %}
<div class="row justify-content-sm-center">
<div class="col-md-8 col-12 col-centered">
Expand Down
6 changes: 6 additions & 0 deletions exodus/analysis_query/templates/query_submit.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{% load i18n %}
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
{% block head %}
<meta property="og:description" content="{% trans "Submit an application handle or URL to run a new analysis" %}">
<meta name="description" content="{% trans "Submit an application handle or URL to run a new analysis" %}">
<meta property="og:title" content="{% trans "New analysis" %}">
<title>{% trans "New analysis" %} - εxodus</title>
{% endblock %}
{% block content %}
<div class="row justify-content-sm-center">
<div class="col-md-8 col-12 text-center mb-4">
Expand Down
6 changes: 6 additions & 0 deletions exodus/analysis_query/templates/query_upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{% load i18n %}
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
{% block head %}
<meta property="og:description" content="{% trans "Upload an APK file to run a new analysis" %}">
<meta name="description" content="{% trans "Upload an APK file to run a new analysis" %}">
<meta property="og:title" content="{% trans "New analysis" %}">
<title>{% trans "New analysis" %} - εxodus</title>
{% endblock %}
{% block content %}
<div class="row justify-content-sm-center">
<div class="col-md-8 col-12 text-center mb-4">
Expand Down
6 changes: 6 additions & 0 deletions exodus/analysis_query/templates/query_wait.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{% load i18n %}
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
{% block head %}
<meta property="og:description" content="{% trans "In progress or completed analysis" %}">
<meta name="description" content="{% trans "In progress or completed analysis" %}">
<meta property="og:title" content="{% trans "New analysis" %}">
<title>{% trans "New analysis" %} - εxodus</title>
{% endblock %}
{% block content %}
<div class="row justify-content-sm-center">
<div class="col-md-8 col-12 text-center mb-4">
Expand Down
8 changes: 8 additions & 0 deletions exodus/reports/templates/report_details.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{% extends "base/base.html"%}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block head %}
{% if report %}
<meta property="og:description" content="{% trans "Known trackers, permissions and informations about this specific version of this application" %}">
<meta name="description" content="{% trans "Known trackers, permissions and informations about this specific version of this application" %}">
<meta property="og:title" content="{% trans "Report for" %} {{ report.application.handle }} {{ report.application.version }}">
<title>{% trans "Report for" %} {{ report.application.handle }} {{ report.application.version }} - εxodus</title>
{% endif %}
{% endblock %}
{% block content %}
{% load static %}
{% if report %}
Expand Down
6 changes: 6 additions & 0 deletions exodus/reports/templates/reports_home.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{% extends "base/base.html" %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block head %}
<meta property="og:description" content="{% trans "Search reports by application name, handle or URL" %}">
<meta name="description" content="{% trans "Search reports by application name, handle or URL" %}">
<meta property="og:title" content="{% trans "Reports" %}">
<title>{% trans "Reports" %} - εxodus</title>
{% endblock %}
{% block content %}
{% load static %}
<div class="row justify-content-md-center">
Expand Down
13 changes: 13 additions & 0 deletions exodus/reports/templates/reports_list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{% extends "base/base.html" %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block head %}
{% if handle %}
<meta property="og:description" content="{% trans "Reports of all analyzed versions of this application" %}">
<meta name="description" content="{% trans "Reports of all analyzed versions of this application" %}">
<meta property="og:title" content="{% trans "Reports list for" %} {{ handle }}">
<title>{% trans "Reports list for" %} {{ handle }} - εxodus</title>
{% else %}
<meta property="og:description" content="{% trans "All applications reports sorted by latest reports, number of trackers or no known trackers" %}">
<meta name="description" content="{% trans "All applications reports sorted by latest reports, number of trackers or no known trackers" %}">
<meta property="og:title" content="{% trans "Reports list" %}">
<title>{% trans "Reports list" %} - εxodus</title>
{% endif %}
{% endblock %}
{% block content %}
{% load static %}
<div class="row justify-content-md-center">
Expand Down
6 changes: 6 additions & 0 deletions exodus/trackers/templates/stats_details.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{% extends "base/base.html" %}
{% load i18n %}
{% block head %}
<meta property="og:description" content="{% trans "Most frequent trackers" %}">
<meta name="description" content="{% trans "Most frequent trackers" %}">
<meta property="og:title" content="{% trans "Statistics" %}">
<title>{% trans "Statistics" %} - εxodus</title>
{% endblock %}
{% block content %}
{% load static %}
<div class="row justify-content-md-center mb-4">
Expand Down
6 changes: 6 additions & 0 deletions exodus/trackers/templates/tracker_details.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{% extends "base/base.html" %}
{% load i18n %}
{% load markdown %}
{% block head %}
<meta property="og:description" content="{% trans "Informations about this tracker" %}">
<meta name="description" content="{% trans "Informations about this tracker" %}">
<meta property="og:title" content="{% trans "Tracker profile for" %} {{ tracker.name }}">
<title>{% trans "Tracker profile for" %} {{ tracker.name }} - εxodus</title>
{% endblock %}
{% block content %}
<style>
h2 {
Expand Down
6 changes: 6 additions & 0 deletions exodus/trackers/templates/trackers_list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{% extends "base/base.html"%}
{% load i18n %}
{% block head %}
<meta property="og:description" content="{% trans "List of known trackers" %}">
<meta name="description" content="{% trans "List of known trackers" %}">
<meta property="og:title" content="{% trans "Trackers" %}">
<title>{% trans "Trackers" %} - εxodus</title>
{% endblock %}
{% block content %}
{% if trackers %}
<div class="row justify-content-sm-center">
Expand Down
8 changes: 7 additions & 1 deletion exodus/web/templates/base/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
<script src="{% static "js/bootstrap.min.js" %}"></script>
<script src="{% static "js/handlebars.min.js" %}"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>εxodus</title>
<meta property="og:type" content="article">
<meta property="og:site_name" content="εxodus">
<meta property="og:image" content="{{ request.scheme }}://{{ request.get_host }}{% static "img/logo_purple_without_text.png" %}">
{% block head %}
<meta property="og:title" content="εxodus">
<title>εxodus</title>
{% endblock %}
</head>

<body>
Expand Down
8 changes: 7 additions & 1 deletion exodus/web/templates/base/home.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{% extends "base/base.html"%}
{% load i18n %}
{% block head %}
<meta property="og:description" content="{% trans "The privacy audit platform for Android applications" %}">
<meta name="description" content="{% trans "The privacy audit platform for Android applications" %}">
<meta property="og:title" content="{% trans "Home" %}">
<title>{% trans "Home" %} - εxodus</title>
{% endblock %}
{% block content %}
{% load i18n %}
<div class="row justify-content-center mb-5 mt-5">
<div class="col-xl-3 col-lg-3 col-md-3 col-sm-4 col-4 my-auto">
<img src="/static/img/logo_purple_small.svg" class="mx-auto d-block img-fluid" alt="exodus logo">
Expand Down
6 changes: 6 additions & 0 deletions exodus/web/templates/base/next.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{% extends "base/base.html" %}
{% load i18n %}
{% load static %}
{% block head %}
<meta property="og:description" content="{% trans "We know it is not easy to find alternatives in order to escape trackers within our apps. We prepared a list of tools and things you can do to better manage your privacy on your smartphone." %}">
<meta name="description" content="{% trans "We know it is not easy to find alternatives in order to escape trackers within our apps. We prepared a list of tools and things you can do to better manage your privacy on your smartphone." %}">
<meta property="og:title" content="{% trans "What's next?" %}">
<title>{% trans "What's next?" %} - εxodus</title>
{% endblock %}
{% block content %}
<div class="row justify-content-sm-center">
<div class="col-md-8 col-12 text-center mb-4">
Expand Down
6 changes: 6 additions & 0 deletions exodus/web/templates/base/organization.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{% extends "base/base.html" %}
{% load i18n %}
{% load static %}
{% block head %}
<meta property="og:description" content="{% trans "Exodus Privacy is a non-profit organization led by hacktivists. Its purpose is to help people get a better understanding of the Android applications tracking issues." %}">
<meta name="description" content="{% trans "Exodus Privacy is a non-profit organization led by hacktivists. Its purpose is to help people get a better understanding of the Android applications tracking issues." %}">
<meta property="og:title" content="{% trans "The organization" %}">
<title>{% trans "The organization" %} - εxodus</title>
{% endblock %}
{% block content %}
<div class="row justify-content-sm-center">
<div class="col-md-8 col-12 text-center mb-4">
Expand Down
6 changes: 6 additions & 0 deletions exodus/web/templates/base/permissions.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{% extends "base/base.html" %}
{% load i18n %}
{% load static %}
{% block head %}
<meta property="og:description" content="{% trans "What type of permissions? Why are some permissions indicated as dangerous? Do I have control over these permissions?" %}">
<meta name="description" content="{% trans "What type of permissions? Why are some permissions indicated as dangerous? Do I have control over these permissions?" %}">
<meta property="og:title" content="{% trans "Permissions" %}">
<title>{% trans "Permissions" %} - εxodus</title>
{% endblock %}
{% block content %}
<div class="row justify-content-sm-center">
<div class="col-md-8 col-12 text-center mb-4">
Expand Down
6 changes: 6 additions & 0 deletions exodus/web/templates/base/trackers.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{% extends "base/base.html" %}
{% load i18n %}
{% load static %}
{% block head %}
<meta property="og:description" content="{% trans "What is a tracker? Are all trackers created equal? Who puts these trackers in?" %}">
<meta name="description" content="{% trans "What is a tracker? Are all trackers created equal? Who puts these trackers in?" %}">
<meta property="og:title" content="{% trans "Trackers" %}">
<title>{% trans "Trackers" %} - εxodus</title>
{% endblock %}
{% block content %}
<div class="row justify-content-sm-center">
<div class="col-md-8 col-12 text-center mb-4">
Expand Down
6 changes: 6 additions & 0 deletions exodus/web/templates/base/understand.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{% extends "base/base.html" %}
{% load i18n %}
{% load static %}
{% block head %}
<meta property="og:description" content="{% trans "Better understand what are trackers, permissions and what to do next" %}">
<meta name="description" content="{% trans "Better understand what are trackers, permissions and what to do next" %}">
<meta property="og:title" content="{% trans "Better understand" %}">
<title>{% trans "Better understand" %} - εxodus</title>
{% endblock %}
{% block content %}
<div class="row justify-content-sm-center mb-4">
<div class="col-md-8 col-12 text-center">
Expand Down
Loading