Remove links to packages from HTML
soneadmin opened this issue · comments
Tell me how you can remove active links from the package versions so that the user cannot download them. I found the following line in the package.html.twig
file:
{%- if package.highest.type == 'metapackage' -%}
{{ version.prettyVersion }}
{%- elseif version.distType -%}
<a class="badge badge-pill badge-secondary" href="{{ version.distUrl }}" title="dist-reference: {{ version.distReference }}{{ branch_alias }}">{{ version.prettyVersion }}</a>
{%- elseif version.sourceUrl matches '#^https?:\/\/#' -%}
<a class="badge badge-pill badge-secondary" href="{{ version.sourceUrl }}" title="source-reference: {{ version.sourceReference }}{{ branch_alias }}">{{ version.prettyVersion }}</a>
{%- else -%}
<span class="badge badge-pill badge-secondary" title="source-reference: {{ version.sourceReference }}{{ branch_alias }}">{{ version.prettyVersion }}</span>
{%- endif -%}
Is there any section in the satis.json responsible for this?
Satis just uses the template file. So if you modify the template..