diff --git a/swh/web/ui/templates/revision-log.html b/swh/web/ui/templates/revision-log.html index ba124f082..26e4462a7 100644 --- a/swh/web/ui/templates/revision-log.html +++ b/swh/web/ui/templates/revision-log.html @@ -1,128 +1,135 @@ {% 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['history_context_url'] is not none %} +
+
Contextual Revision Log
+ +
+ {% endif %} + {% if revision['directory_url'] is not none %}
directory
{% endif %} {% if revision['author'] is not none %}
Author

{{ revision['author']['name'] }} {% if 'decoding_failures' in revision['author'] %}(some decoding errors){% endif %}

Date

{{ revision['date'] }}

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

{{ revision['committer']['name'] }} {% if 'decoding_failures' in revision['committer'] %}(some decoding errors){% endif %}

Committer Date

{{ revision['committer_date'] }}

{% endif %} {% if revision['message'] is not none %}
Message
{{ revision['message'] }}
{% elif revision['message_encoding_failed'] %}
Message
Message
No message found.
{% endif %} {% for key in revision.keys() %} {% if key in ['type', 'synthetic'] and key not in ['decoding_failures'] 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 %} {% 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 307420bb7..8629aa1dc 100644 --- a/swh/web/ui/templates/revision.html +++ b/swh/web/ui/templates/revision.html @@ -1,109 +1,116 @@ {% 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['history_context_url'] is not none %} +
+
Contextual Revision Log
+ +
+ {% endif %} + {% if revision['directory_url'] is not none %}
directory
{% endif %} {% if revision['author'] is not none %}
Author

{{ revision['author']['name'] }} {% if 'decoding_failures' in revision['author'] %}(some decoding failed){% endif %}

Date

{{ revision['date'] }}

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

{{ revision['committer']['name'] }} {% if 'decoding_failures' in revision['committer'] %}(some decoding failed){% endif %}

Committer Date

{{ revision['committer_date'] }}

{% endif %} {% if revision['message'] is not none %}
Message
{{ revision['message'] }}
{% elif revision['message_encoding_failed'] %}
Message
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 %} {% if 'decoding_failures' in revision %}
(some decoding failed)
{% endif %} {% endif %} {% endblock %}