Changeset View
Changeset View
Standalone View
Standalone View
swh/web/browse/snapshot_context.py
Show First 20 Lines • Show All 831 Lines • ▼ Show 20 Lines | vault_cooking = { | ||||
"directory_id": sha1_git, | "directory_id": sha1_git, | ||||
"revision_context": True, | "revision_context": True, | ||||
"revision_id": revision_id, | "revision_id": revision_id, | ||||
} | } | ||||
swhids_info = get_swhids_info(swh_objects, snapshot_context, dir_metadata) | swhids_info = get_swhids_info(swh_objects, snapshot_context, dir_metadata) | ||||
dir_path = "/".join([bc["name"] for bc in breadcrumbs]) + "/" | dir_path = "/".join([bc["name"] for bc in breadcrumbs]) + "/" | ||||
context_found = "snapshot: %s" % snapshot_context["snapshot_id"] | dir_path = f"dir : {dir_path}" | ||||
vlorentz: no space before a colon | |||||
context_found = "Snapshot - %s" % snapshot_context["snapshot_id"] | |||||
if origin_info: | if origin_info: | ||||
context_found = "origin: %s" % origin_info["url"] | context_found += " Origin : %s" % origin_info["url"] | ||||
vlorentzUnsubmitted Done Inline Actionssame here vlorentz: same here | |||||
heading = "Directory - %s - %s - %s" % ( | heading = "%s - %s - %s" % (context_found, dir_path, snapshot_context["branch"]) | ||||
vlorentzUnsubmitted Done Inline ActionsShouldn't the branch remain before the path? vlorentz: Shouldn't the branch remain before the path? | |||||
dir_path, | |||||
snapshot_context["branch"], | |||||
context_found, | |||||
) | |||||
top_right_link = None | top_right_link = None | ||||
if not snapshot_context["is_empty"]: | if not snapshot_context["is_empty"]: | ||||
top_right_link = { | top_right_link = { | ||||
"url": history_url, | "url": history_url, | ||||
"icon": swh_object_icons["revisions history"], | "icon": swh_object_icons["revisions history"], | ||||
"text": "History", | "text": "History", | ||||
} | } | ||||
▲ Show 20 Lines • Show All 586 Lines • Show Last 20 Lines |
no space before a colon