diff --git a/swh/web/ui/templates/content.html b/swh/web/ui/templates/content.html
index 2da5bd02f..8cb32bc32 100644
--- a/swh/web/ui/templates/content.html
+++ b/swh/web/ui/templates/content.html
@@ -1,28 +1,33 @@
{% extends "layout.html" %}
{% block title %}Content information{% endblock %}
{% block content %}
{% if message is not none %}
{{ message }}
{% endif %}
{% if content is not none %}
{% for key in ['sha1', 'sha256', 'sha1_git', 'status', 'length', 'ctime'] %}
{{ key }}
{{ content[key] }}
{% endfor %}
{% if content['data_url'] is not none %}
{% endif %}
{% if content['data'] is not none %}
{% endif %}
+ {% if 'decoding_failures' in content %}
+
+
(some decoding errors)
+
+ {% endif %}
{% endif %}
{% endblock %}
diff --git a/swh/web/ui/templates/directory.html b/swh/web/ui/templates/directory.html
index dd609d8fe..32244ad43 100644
--- a/swh/web/ui/templates/directory.html
+++ b/swh/web/ui/templates/directory.html
@@ -1,10 +1,15 @@
{% extends "layout.html" %}
{% block title %}Browse directory{% endblock %}
{% block content %}
{{ message }}
{% if ls is not none %}
{% for e in files %}
-
+
+
+ {{ e.name }}
+ {% if 'decoding_failures' in e %}(some decoding errors){% endif %}
+
+
{% endfor %}
{% endif %}
{% endblock %}
diff --git a/swh/web/ui/templates/entity.html b/swh/web/ui/templates/entity.html
index 8d5c19a95..9106cded4 100644
--- a/swh/web/ui/templates/entity.html
+++ b/swh/web/ui/templates/entity.html
@@ -1,23 +1,28 @@
{% extends "layout.html" %}
{% block title %}Entity information{% endblock %}
{% block content %}
{% if message is not none %}
{{ message | safe }}
{% endif %}
{% if entities is not none %}
{% for entity in entities %}
{% for key in ['uuid', 'parent', 'name', 'doap', 'lister_metadata',
'homepage', 'lister', 'description', 'type', 'last_id',
'generated', 'active', 'last_seen'] %}
{% if entity[key] is not none %}
{{ key }}
{{ entity[key] }}
{% endif %}
{% endfor %}
+ {% if 'decoding_failures' in entity %}
+
+
(some decoding errors)
+
+ {% endif %}
{% endfor %}
{% endif %}
{% endblock %}
diff --git a/swh/web/ui/templates/origin.html b/swh/web/ui/templates/origin.html
index 10203314f..d2ccd5d83 100644
--- a/swh/web/ui/templates/origin.html
+++ b/swh/web/ui/templates/origin.html
@@ -1,22 +1,27 @@
{% extends "layout.html" %}
{% block title %}Origin{% endblock %}
{% block content %}
{% if message is not none %}
{{ message }}
{% endif %}
{% if origin is not none %}
Details on origin {{ origin_id }}:
{% for key in ['type', 'lister', 'projet', 'url'] %}
{% if origin[key] is not none %}
{{ key }}
{{ origin[key] }}
{% endif %}
{% endfor %}
+ {% if 'decoding_failures' in content %}
+
+
(some decoding errors)
+
+ {% endif %}
{% endif %}
{% endblock %}
diff --git a/swh/web/ui/templates/person.html b/swh/web/ui/templates/person.html
index 5c125cfdf..ebf455f8b 100644
--- a/swh/web/ui/templates/person.html
+++ b/swh/web/ui/templates/person.html
@@ -1,22 +1,27 @@
{% extends "layout.html" %}
{% block title %}Person{% endblock %}
{% block content %}
{% if message is not none %}
{{ message }}
{% endif %}
{% if person is not none %}
Details on person {{ person_id }}:
{% for key in ['name', 'email'] %}
{% if person[key] is not none %}
{{ key }}
{{ person[key] }}
{% endif %}
{% endfor %}
+ {% if 'decoding_failures' in person %}
+
+
(some decoding errors)
+
+ {% endif %}
{% endif %}
{% endblock %}
diff --git a/swh/web/ui/templates/release.html b/swh/web/ui/templates/release.html
index d7b326b5e..5e5335c7e 100644
--- a/swh/web/ui/templates/release.html
+++ b/swh/web/ui/templates/release.html
@@ -1,35 +1,43 @@
{% extends "layout.html" %}
{% block title %}Release{% endblock %}
{% block content %}
{% if message is not none %}
{{ message }}
{% endif %}
{% if release is not none %}
{% for key in release.keys() %}
- {% if key not in ['author', 'target_url', 'message', 'target', 'target_type'] and release[key] is not none %}
+ {% if key not in ['author', 'target_url', 'message', 'target', 'target_type', 'decoding_failures'] and release[key] is not none %}
{{ key }}
{{ release[key] }}
{% endif %}
{% endfor %}
{% if release['author'] is not none %}
author
-
{{ release['author']['name'] }} - {{ release['author']['email'] }}
+
+ {{ release['author']['name'] }} - {{ release['author']['email'] }}
+ {% if 'decoding_failures' in release['author'] %}(some decoding errors){% endif %}
+
{% endif %}
{% if release['target_url'] is not none %}
{{ release['target_type'] }}
{% endif %}
+ {% if 'decoding_failures' in release %}
+
+
(some decoding errors)
+
+ {% endif %}
{% endif %}
{% endblock %}
diff --git a/swh/web/ui/templates/revision-directory.html b/swh/web/ui/templates/revision-directory.html
index 20ec0ed3d..674afa404 100644
--- a/swh/web/ui/templates/revision-directory.html
+++ b/swh/web/ui/templates/revision-directory.html
@@ -1,45 +1,60 @@
{% extends "layout.html" %}
{% block title %}Browse revision at path{% endblock %}
{% block content %}
{% if message is not none %}
{{ message }}
{% endif %}
{% if result is not none %}
Browse revision '{{ revision }}' with {{ result['type'] }}path '{{ path }}':
{% if result['type'] == 'dir' %}
{% if result['content'] is not none %}
{% for e in result['content'] %}
{% if e.type == 'dir' %}
-
+
+
+ {{ e.name }}
+ {% if 'decoding_failures' in e %}(some decoding errors){% endif %}
+
+
{% else %}
-
- {% endif %}
+
+
+ {{ e.name }}
+ {% if 'decoding_failures' in e %}(some decoding errors){% endif %}
+
+
+ {% endif %}
{% endfor %}
{% endif %}
{% else %}
{% if result['content'] is not none %}
{% for key in ['sha1', 'sha256', 'sha1_git', 'status', 'length', 'ctime'] %}
{{ key }}
{{ result['content'][key] }}
{% endfor %}
{% endif %}
{% if result['content']['data_url'] is not none %}
{% endif %}
{% if result['content']['data'] is not none %}
data
{{ result['content']['data'] }}
- {% endif %}
+ {% endif %}
+ {% if 'decoding_failures' in result %}
+
+
(some decoding errors)
+
+ {% endif %}
{% endif %}
{% endif %}
{% endblock %}
diff --git a/swh/web/ui/templates/revision-log.html b/swh/web/ui/templates/revision-log.html
index 5a7774f77..ba124f082 100644
--- a/swh/web/ui/templates/revision-log.html
+++ b/swh/web/ui/templates/revision-log.html
@@ -1,113 +1,128 @@
{% extends "layout.html" %}
{% block title %}Revision Log{% endblock %}
{% block content %}
{% if message is not none %}
{{ message }}
{% endif %}
Queried revision:
{% if sha1_git is not none %}
{% else %}
Branch name {{ branch_name }}
{% if timestamp is not none %}
Time stamp {{ timestamp }}
{% endif %}
{% endif %}
{% if revisions is not none %}
{% for revision in revisions %}
{% if revision['url'] is not none %}
{% endif %}
{% if revision['history_url'] is not none %}
{% endif %}
{% if revision['directory_url'] is not none %}
{% endif %}
{% if revision['author'] is not none %}
{% endif %}
{% if revision['committer'] is not none %}
Committer Date
{{ revision['committer_date'] }}
{% endif %}
{% if revision['message'] is not none %}
Message
{{ revision['message'] }}
{% elif revision['message_encoding_failed'] %}
Message
No message found.
{% endif %}
{% for key in revision.keys() %}
- {% if key in ['type', 'synthetic'] and revision[key] is not none %}
+ {% if key in ['type', 'synthetic'] and key not in ['decoding_failures'] and revision[key] is not none %}
{% endif %}
{% endfor %}
-
{% for key in ['parent_urls', 'children_urls'] %}
{% if revision[key] is not none %}
{{ key }}
{% for link in revision[key] %}
{% endfor %}
{% endif %}
{% endfor %}
+ {% if 'decoding_failures' in revision %}
+
+
(some decoding errors occurred)
+
+ {% endif %}
+
{% endfor %}
{% endif %}
{% endblock %}
diff --git a/swh/web/ui/templates/revision.html b/swh/web/ui/templates/revision.html
index 52e116e0f..307420bb7 100644
--- a/swh/web/ui/templates/revision.html
+++ b/swh/web/ui/templates/revision.html
@@ -1,94 +1,109 @@
{% extends "layout.html" %}
{% block title %}Revision{% endblock %}
{% block content %}
{% if message is not none %}
{{ message }}
{% endif %}
{% if revision is not none %}
{% if revision['url'] is not none %}
{% endif %}
{% if revision['history_url'] is not none %}
{% endif %}
{% if revision['directory_url'] is not none %}
{% endif %}
{% if revision['author'] is not none %}
{% endif %}
{% if revision['committer'] is not none %}
Committer Date
{{ revision['committer_date'] }}
{% endif %}
{% if revision['message'] is not none %}
Message
{{ revision['message'] }}
{% elif revision['message_encoding_failed'] %}
Message
No message found.
{% endif %}
{% for key in revision.keys() %}
{% if key in ['type', 'synthetic'] and revision[key] is not none %}
{% endif %}
{% endfor %}
{% for key in ['parent_urls', 'children_urls'] %}
{% if revision[key] is not none %}
{{ key }}
{% for link in revision[key] %}
{% endfor %}
{% endif %}
{% endfor %}
+ {% if 'decoding_failures' in revision %}
+
+
(some decoding failed)
+
+ {% endif %}
{% endif %}
{% endblock %}