Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9337079
show-metadata.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
show-metadata.html
View Options
{% comment %}
Copyright (C) 2017-2021 The Software Heritage developers
See the AUTHORS file at the top-level directory of this distribution
License: GNU Affero General Public License version 3, or any later version
See top-level LICENSE file for more information
{% endcomment %}
{% load swh_templatetags %}
{% if 'metadata' in swh_object_metadata and swh_object_metadata.metadata != '{}' %}
<
button
id
=
"swh-metadata-toggler"
class
=
"btn btn-default btn-sm swh-popover-toggler"
data-toggle
=
"popover"
data-popover-content
=
"#swh-metadata-popover"
>
<
i
class
=
"mdi mdi-table mdi-fw"
aria-hidden
=
"true"
></
i
>
{% if user.is_staff %}
Legacy extrinsic metadata
{% else %}
Show metadata
{% endif %}
</
button
>
<
div
id
=
"swh-metadata-popover"
style
=
"display:none;"
>
<
div
class
=
"popover-heading"
>
{{ swh_object_name }} metadata
</
div
>
<
div
class
=
"popover-body"
>
<
pre
class
=
"bg-white"
>
{{ swh_object_metadata.metadata | escape }}
</
pre
>
</
div
>
</
div
>
{% endif %}
{% if user.is_staff %}
{% if swhids_info %}
<
div
class
=
"btn-group"
>
<
button
class
=
"btn btn-default btn-sm dropdown-toggle"
type
=
"button"
data-toggle
=
"dropdown"
>
<
i
class
=
"mdi mdi-table mdi-fw"
aria-hidden
=
"true"
></
i
>
Extrinsic metadata
</
button
>
<
div
class
=
"dropdown-menu swh-extrinsic-metadata-menu"
>
{% if snapshot_context.origin_info %}
<
a
href
=
"{% url 'api-1-raw-extrinsic-metadata-origin-authorities' snapshot_context.origin_info.url %}"
class
=
"dropdown-item"
role
=
"button"
>
<
i
class
=
"{{ swh_object_icons.origin }} mdi-fw"
aria-hidden
=
"true"
></
i
>
Origin
</
a
>
{% endif %}
{% for swhid_info in swhids_info %}
<
a
href
=
"{% url 'api-1-raw-extrinsic-metadata-swhid-authorities' swhid_info.swhid %}"
class
=
"dropdown-item"
role
=
"button"
>
<
i
class
=
"{{ swh_object_icons|key_value:swhid_info.object_type.name.lower }} mdi-fw"
aria-hidden
=
"true"
></
i
>
{{swhid_info.object_type.name.lower}}
</
a
>
{% endfor %}
</
div
>
</
div
>
{% endif %}
{% endif %}
<
script
>
swh
.
webapp
.
setBrowsedSwhObjectMetadata
({{
swh_object_metadata
|
jsonify
}})
</
script
>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Jul 4 2025, 7:52 AM (10 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3306360
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment