diff --git a/repologyapp/package.py b/repologyapp/package.py index 5d9f5ec7..17d767cf 100644 --- a/repologyapp/package.py +++ b/repologyapp/package.py @@ -173,6 +173,7 @@ class LinkType: PACKAGE_STATISTICS: ClassVar[int] = 25 PACKAGE_BUILD_STATUS: ClassVar[int] = 26 PACKAGE_BUILD_LOGS: ClassVar[int] = 27 + UPSTREAM_DOWNLOAD_PAGE: ClassVar[int] = 28 OTHER: ClassVar[int] = 99 diff --git a/repologyapp/templates/_macros/links.html b/repologyapp/templates/_macros/links.html index ae512299..f62e7303 100644 --- a/repologyapp/templates/_macros/links.html +++ b/repologyapp/templates/_macros/links.html @@ -75,6 +75,7 @@ {%- elif code == 25 %}Package statistics {%- elif code == 26 %}Package build status {%- elif code == 27 %}Package build logs + {%- elif code == 28 %}Upstream download page {%- else %}Other{% endif -%} {%- endmacro -%} diff --git a/repologyapp/views/project.py b/repologyapp/views/project.py index a479f8f4..be67d63f 100644 --- a/repologyapp/views/project.py +++ b/repologyapp/views/project.py @@ -178,7 +178,7 @@ def _link_type_to_slice_name(link_type: int) -> str | None: match link_type: case LinkType.UPSTREAM_HOMEPAGE | LinkType.PROJECT_HOMEPAGE: return 'homepages' - case LinkType.UPSTREAM_DOWNLOAD | LinkType.PROJECT_DOWNLOAD: + case LinkType.UPSTREAM_DOWNLOAD | LinkType.PROJECT_DOWNLOAD | LinkType.UPSTREAM_DOWNLOAD_PAGE: return 'downloads' case LinkType.UPSTREAM_ISSUE_TRACKER: return 'issues'