diff --git a/swh/web/ui/templates/revision-log.html b/swh/web/ui/templates/revision-log.html index 9496fe811..7de3292c9 100644 --- a/swh/web/ui/templates/revision-log.html +++ b/swh/web/ui/templates/revision-log.html @@ -1,103 +1,111 @@ {% 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['msg_url'] is not none %} +
+
Message
+ +
+ {% 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] %} {% endfor %}
{% endif %} {% endfor %}

{% endfor %} {% endif %} {% endblock %} diff --git a/swh/web/ui/templates/revision.html b/swh/web/ui/templates/revision.html index 29da19357..0e9579cd6 100644 --- a/swh/web/ui/templates/revision.html +++ b/swh/web/ui/templates/revision.html @@ -1,84 +1,91 @@ {% 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['msg_url'] is not none %} +
+
Message
+ +
+ {% 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] %} {% endfor %}
{% endif %} {% endfor %}
{% endif %} {% endblock %}