{% extends "layout.html" %}
{% block body %}
{% if resp["output"] == "ok" %}
  <h1>Available versions of {{ project }}</h1>

  <table class="table table-hover table-bordered table-sm">
    <tr>
      <th>Branch</th>
      <th>Revision</th>
      <th>Download wrap</th>
    </tr>
    {% for p in resp["versions"] %}
    <tr>
      <td>{{ p["branch"] }}</td>
      <td>{{ p["revision"] }}</td>
      <td><a href={{ url_for("api.get_wrap", project=project, branch=p["branch"], revision=p["revision"]).replace("get_zip", "get_wrap") }}>Download</a></td>
    </tr>
    {% endfor %}
  </table>
{% else %}
  <h1>Something went wrong</h1>

  {{ resp["error"] }}
{% endif %}
{% endblock %}

{% extends "layout.html" %}
{% block body %}
{% if resp["output"] == "ok" %}
  <h1>Available versions of {{ project }}</h1>

  <table class="table table-hover table-bordered table-sm">
    <tr>
      <th>Branch</th>
      <th>Revision</th>
      <th>Download wrap</th>
    </tr>
    {% for p in resp["versions"] %}
    <tr>
      <td>{{ p["branch"] }}</td>
      <td>{{ p["revision"] }}</td>
      <td><a href={{ url_for("api.get_wrap", project=project, branch=p["branch"], revision=p["revision"]) }}>Download</a></td>
    </tr>
    {% endfor %}
  </table>
{% else %}
  <h1>Something went wrong</h1>

  {{ resp["error"] }}
{% endif %}
{% endblock %}

Remove unneeded replace from url_for()-provided URL
Remove unneeded replace from url_for()-provided URL

get_zip is not present in the URL and replace() is noop.
