Now, only the first demo will be shown from a group of demos with the
same target ID. Icons are shown next to each grouped download, which
allow the users to open/close the groups (forming virtual "folders").
This simplifies the demos page a lot, without any changes to the
existing data. This feature is a progressive enhancement: the demos
page will still look the same when Javascript is disabled
Also, the creation of the button itself has been pushed to Javascript.
The recommended d/l section is now only shown if JS is enabled and an
appropriate user-agent has been matched
Add a new XML field, "user_agent", used to find the user agent string
where the download item in question will be suggested to the user. Only
items with the "user_agent" field can be provided as recommended
downloads
The idea has been taken and adapted from the VideoLAN web site
(http://www.videolan.org). A big 'download' button is shown,
which links to the most appropriate version for the user, depending
on the OS reported by the user's browser. Only OSes with a browser
have been added. Known browser user-agent strings have been taken
from http://user-agent-string.info/list-of-ua/os
Opera also differented in how the attributes are returned as it returns "url('data/screenshots/...')" while the other browsers return "url(data/screenshots/...)".
svn path=/web/trunk/; revision=40854