Changeset View
Changeset View
Standalone View
Standalone View
swh/web/browse/views/content.py
Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | content_metadata = ContentMetadata( | ||||
revision=None, | revision=None, | ||||
release=None, | release=None, | ||||
snapshot=None, | snapshot=None, | ||||
origin_url=origin_url, | origin_url=origin_url, | ||||
) | ) | ||||
swhids_info = get_swhids_info( | swhids_info = get_swhids_info( | ||||
[SWHObjectInfo(object_type=CONTENT, object_id=content_checksums["sha1_git"])], | [SWHObjectInfo(object_type=CONTENT, object_id=content_checksums["sha1_git"])], | ||||
snapshot_context, | |||||
extra_context=content_metadata, | extra_context=content_metadata, | ||||
) | ) | ||||
heading = "Content - %s" % content_checksums["sha1_git"] | heading = "Content - %s" % content_checksums["sha1_git"] | ||||
if breadcrumbs: | if breadcrumbs: | ||||
content_path = "/".join([bc["name"] for bc in breadcrumbs]) | content_path = "/".join([bc["name"] for bc in breadcrumbs]) | ||||
heading += " - %s" % content_path | heading += " - %s" % content_path | ||||
Show All 32 Lines |