diff options
author | Simo Sorce <idra@samba.org> | 2012-11-06 17:45:08 +0000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2012-12-30 12:36:04 +0800 |
commit | 97d47d0e72c576ba3a09e85fc05e1ba6e0fb6d32 (patch) | |
tree | e8bbc6986bb014a1397dfdd41aef96e75064c936 /templates | |
parent | 27b72379bf581c8b3d106bfabc67bd82a18edfc7 (diff) | |
download | patchwork-97d47d0e72c576ba3a09e85fc05e1ba6e0fb6d32.tar patchwork-97d47d0e72c576ba3a09e85fc05e1ba6e0fb6d32.tar.gz |
views/bundle: Allow downloading public bundle as mbox
Downloading single patches anonymously is allowed, we may as well allow
downloading public bundles as mboxes.
This patch also changes the file name to be bundle-<id>-<name>.mbox so
that the file name is unique even if bundle names are reused.
Signed-off-by: Simo Sorce <idra@samba.org>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/patchwork/bundle-public.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/patchwork/bundle-public.html b/templates/patchwork/bundle-public.html index 3590c46..181e211 100644 --- a/templates/patchwork/bundle-public.html +++ b/templates/patchwork/bundle-public.html @@ -7,6 +7,8 @@ {% block body %} +<a href="{% url patchwork.views.bundle.public_mbox username=bundle.owner.username bundlename=bundle.name %}">Download</a> bundle as mbox + {% include "patchwork/patch-list.html" %} {% endblock %} |