[arch-projects] [archweb] [RFC] download.html: Provide a magnet link
Dan McGee
dan at archlinux.org
Wed Oct 31 09:10:13 EDT 2012
On Wed, Oct 31, 2012 at 5:22 AM, Thomas Bächler <thomas at archlinux.org> wrote:
> Some people prefer these over torrent files, as they're easier to pass
> than the torrent files themselves. On updates, this only needs the
> new info hash.
>
> The tracker bits are optional, but ensure that the torrent client gets
> peers more quickly to receive the actual torrent file.
> ---
> templates/public/download.html | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/templates/public/download.html b/templates/public/download.html
> index ba4c328..f5a7c24 100644
> --- a/templates/public/download.html
> +++ b/templates/public/download.html
> @@ -7,7 +7,7 @@
> {% block navbarclass %}anb-download{% endblock %}
>
> {% block content %}
> -{% with version="2012.10.06" kernel_version="3.5.5" %}
> +{% with version="2012.10.06" kernel_version="3.5.5" torrent_infohash="b4865374f39a2b34f4c9517ec4b532f65094a28d" %}
> <div id="arch-downloads" class="box">
>
> <h2>Arch Linux Downloads</h2>
> @@ -46,7 +46,8 @@
> <em>A web-seed capable client is recommended for fastest download speeds.</em></p>
> <ul>
> <li><a href="https://www.archlinux.org/iso/{{version}}/archlinux-{{version}}-dual.iso.torrent"
> - title="Download for both architectures">Download archlinux-{{version}}-dual.iso.torrent</a></li>
> + title="Download for both architectures">Download archlinux-{{version}}-dual.iso.torrent</a>
> + (<a href="magnet:?xt=urn:btih:{{torrent_infohash}}&dn=archlinux-2012.10.06-dual.iso&tr=udp://tracker.archlinux.org:6969&tr=http://tracker.archlinux.org:6969/announce">Magnet</a>)</li>
We should use {{version}} in here too, right? Instead of the hardcoded
"2012.10.06" string. Otherwise looks good.
> </ul>
>
> <h3>Netboot</h3>
> --
> 1.8.0
>
More information about the arch-projects
mailing list