diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-04-20 21:45:40 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-04-20 22:45:20 +0800 |
commit | 5d0140ef04ababd93c45b5126ee1b412bd778da5 (patch) | |
tree | ef1c8adf417e7c1d4e556d50877dfaf4e1f263aa /templates/patchwork/bundles.html | |
parent | 627f5aca263da2513fe6d592becd3b505d97dd21 (diff) | |
download | patchwork-5d0140ef04ababd93c45b5126ee1b412bd778da5.tar.bz2 patchwork-5d0140ef04ababd93c45b5126ee1b412bd778da5.tar.xz |
bundles: Remove separate public bundle views
Having two views for bundles (public and non-public) can cause confusion
when bundle owners want to share a URL; it's not obvious that the
private URL isn't shareable.
This change removes the private URLs, and puts all bundles under the
/bundle/<username>/<bundlename>/ URL space. For non-public bundles, this
will just 404 for non-owners.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates/patchwork/bundles.html')
-rw-r--r-- | templates/patchwork/bundles.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/patchwork/bundles.html b/templates/patchwork/bundles.html index 5340a64..3624f81 100644 --- a/templates/patchwork/bundles.html +++ b/templates/patchwork/bundles.html @@ -17,8 +17,7 @@ </tr> {% for bundle in bundles %} <tr> - <td><a href="{% url patchwork.views.bundle.bundle bundle_id=bundle.id %}" - >{{ bundle.name }}</a></td> + <td><a href="{{ bundle.get_absolute_url }}">{{ bundle.name }}</a></td> <td>{{ bundle.project.linkname }}</td> <td> {% if bundle.public %} @@ -27,7 +26,7 @@ </td> <td style="text-align: right">{{ bundle.n_patches }}</td> <td style="text-align: center;"><a - href="{% url patchwork.views.bundle.mbox bundle_id=bundle.id %}" + href="{% url patchwork.views.bundle.mbox username=bundle.owner.username bundlename=bundle.name %}" ><img src="/images/16-em-down.png" width="16" height="16" alt="download" title="download"/></a></td> <td style="text-align: center;"> |