Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/includes/revision-info.html
{% comment %} | {% comment %} | ||||
Copyright (C) 2020-2021 The Software Heritage developers | Copyright (C) 2020-2021 The Software Heritage developers | ||||
See the AUTHORS file at the top-level directory of this distribution | See the AUTHORS file at the top-level directory of this distribution | ||||
License: GNU Affero General Public License version 3, or any later version | License: GNU Affero General Public License version 3, or any later version | ||||
See top-level LICENSE file for more information | See top-level LICENSE file for more information | ||||
{% endcomment %} | {% endcomment %} | ||||
{% if snapshot_context and snapshot_context.revision_id %} | {% if snapshot_context and snapshot_context.revision_info %} | ||||
<div id="swh-tip-revision" class="card d-none d-md-block"> | <div id="swh-tip-revision" class="card d-none d-md-block"> | ||||
<div class="card-body pt-2 pb-1 d-flex align-items-start justify-content-between"> | <div class="card-body pt-2 pb-1 d-flex align-items-start justify-content-between"> | ||||
<i style="min-width: 36px;" class="{{ swh_object_icons.revision }} mdi-36px mdi-fw" aria-hidden="true"></i> | <i style="min-width: 36px;" class="{{ swh_object_icons.revision }} mdi-36px mdi-fw" aria-hidden="true"></i> | ||||
<div class="flex-grow-1 pl-3"> | <div class="flex-grow-1 pl-3"> | ||||
Tip revision: | Tip revision: | ||||
<a href="{{ snapshot_context.revision_info.revision_url }}"> | <a href="{{ snapshot_context.revision_info.revision_url }}"> | ||||
<b>{{ snapshot_context.revision_id }}</b> | <b>{{ snapshot_context.revision_id }}</b> | ||||
</a> | </a> | ||||
Show All 11 Lines | <div class="card-body pt-1 pb-1 d-flex align-items-center justify-content-between"> | ||||
Tip revision: | Tip revision: | ||||
<a href="{{ snapshot_context.revision_info.revision_url }}"> | <a href="{{ snapshot_context.revision_info.revision_url }}"> | ||||
<b>{{ snapshot_context.revision_id|slice:"0:7" }}</b> | <b>{{ snapshot_context.revision_id|slice:"0:7" }}</b> | ||||
</a> | </a> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
{% endif %} | {% endif %} | ||||
No newline at end of file | No newline at end of file |