diff --git a/swh/web/ui/templates/revision-log.html b/swh/web/ui/templates/revision-log.html index b79e464b9..5a7774f77 100644 --- a/swh/web/ui/templates/revision-log.html +++ b/swh/web/ui/templates/revision-log.html @@ -1,111 +1,113 @@ {% 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 %}
Revision with git SHA1 {{ sha1_git }}
{% else %}
Origin ID {{ origin_id }}
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 %}
Revision
{% endif %} {% if revision['history_url'] is not none %}
Revision Log
{% endif %} {% if revision['directory_url'] is not none %}
directory
{% endif %} {% if revision['author'] is not none %}
Author
Date

{{ revision['date'] }}

{% endif %} {% if revision['committer'] is not none %}
Committer
Committer Date

{{ revision['committer_date'] }}

{% endif %} {% if revision['message'] is not none %}
Message
{{ revision['message'] }}
- {% endif %} - - {% if revision['message_url'] is not none %} + {% elif revision['message_encoding_failed'] %} +
+
Message
+ +
Message
-
Download raw message
+
No message found.
- {% endif %} - + {% endif %} {% for key in revision.keys() %} {% if key in ['type', 'synthetic'] and revision[key] is not none %}
{{ key }}

{{ revision[key] }}

{% endif %} {% endfor %} {% for key in ['parent_urls', 'children_urls'] %} {% if revision[key] is not none %}
{{ key }}
{% for link in revision[key] %}
{{ link }}
{% endfor %}
{% endif %} {% endfor %}
{% endfor %} {% endif %} {% endblock %} diff --git a/swh/web/ui/templates/revision.html b/swh/web/ui/templates/revision.html index aa80dd881..52e116e0f 100644 --- a/swh/web/ui/templates/revision.html +++ b/swh/web/ui/templates/revision.html @@ -1,91 +1,94 @@ {% 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 %}
Revision
{% endif %} {% if revision['history_url'] is not none %}
Revision Log
{% endif %} {% if revision['directory_url'] is not none %}
directory
{% endif %} {% if revision['author'] is not none %}
Author
Date

{{ revision['date'] }}

{% endif %} {% if revision['committer'] is not none %}
Committer
Committer Date

{{ revision['committer_date'] }}

{% endif %} {% if revision['message'] is not none %}
Message
{{ revision['message'] }}
- {% endif %} - - {% if revision['message_url'] is not none %} + {% elif revision['message_encoding_failed'] %} +
+
Message
+ +
Message
-
Download raw message
+
No message found.
{% endif %} {% for key in revision.keys() %} {% if key in ['type', 'synthetic'] and revision[key] is not none %}
{{ key }}

{{ revision[key] }}

{% endif %} {% endfor %} {% for key in ['parent_urls', 'children_urls'] %} {% if revision[key] is not none %}
{{ key }}
{% for link in revision[key] %}
{{ link }}
{% endfor %}
{% endif %} {% endfor %} {% endif %} {% endblock %}