Skip to content

Commit

Permalink
Homepage: Detail release dates for package downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Sep 24, 2012
1 parent 084fa02 commit 2a19e3c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
7 changes: 7 additions & 0 deletions web/plugins/pages/html/mac_os.html
Expand Up @@ -63,6 +63,13 @@ <h3>Minimum System Requirements</h3>
}
}

if(json.hasOwnProperty('release_date'))
{
var releaseDate = new Date(Date.parse(json.release_date));
var shortDate = (releaseDate.getDate()) + '/' + (1 + releaseDate.getMonth()) + '/' + releaseDate.getFullYear();
metaData += '<span title="Release Date">' + shortDate + '</span> &middot; ';
}

if(json.platform_name == 'mac10_6-x86-x86_64')
{
metaData += 'Mac OS 10.6+';
Expand Down
7 changes: 7 additions & 0 deletions web/plugins/pages/html/ubuntu.html
Expand Up @@ -63,6 +63,13 @@ <h3>Minimum System Requirements</h3>
}
}

if(json.hasOwnProperty('release_date'))
{
var releaseDate = new Date(Date.parse(json.release_date));
var shortDate = (releaseDate.getDate()) + '/' + (1 + releaseDate.getMonth()) + '/' + releaseDate.getFullYear();
metaData += '<span title="Release Date">' + shortDate + '</span> &middot; ';
}

if(json.platform_name == 'linux-x86')
{
metaData += /*json.platform_name + */ 'Ubuntu 11.10+ (32bit)</span>';
Expand Down
9 changes: 8 additions & 1 deletion web/plugins/pages/html/windows.html
Expand Up @@ -5,7 +5,7 @@ <h2>Install Packages</h2>
<div id="downloads_list2" class="downloads_list"></div>
<h3>Minimum System Requirements</h3>
<ul>
<li>Windows XP, Vista or 7 running <a href="http://www.microsoft.com/directx" rel="nofollow" class="link-external" title="http://www.microsoft.com/directx">DirectX 8</a> (or later).</li>
<li>Windows XP, Vista, 7 or 8 running <a href="http://www.microsoft.com/directx" rel="nofollow" class="link-external" title="http://www.microsoft.com/directx">DirectX 8</a> (or later).</li>
<li>Display adapter capable of 3D hardware acceleration using OpenGL.</li>
<li>Original game data files for each supported game that you wish to play (e.g., in the case of <strong>DOOM</strong> the only file needed is <em>doom.wad</em>).</li>
<li>Some <a href="/addons" title="Doomsday Add-ons">Add-ons</a> may require a large amount of disk space (especially high quality texture and music packs).</li>
Expand Down Expand Up @@ -64,6 +64,13 @@ <h3>Minimum System Requirements</h3>
cleanTitle += ' (Unstable)';
}
}

if(json.hasOwnProperty('release_date'))
{
var releaseDate = new Date(Date.parse(json.release_date));
var shortDate = (releaseDate.getDate()) + '/' + (1 + releaseDate.getMonth()) + '/' + releaseDate.getFullYear();
metaData += '<span title="Release Date">' + shortDate + '</span> &middot; ';
}
metaData += /*json.platform_name + */'Windows XP sp2+</span>';

return $('<div class="package_badge"><a class="package_name" href="' + downloadUri + '" title="Download ' + json.fulltitle + '">' + cleanTitle + '</a><br />' + metaData + '</div>');
Expand Down

0 comments on commit 2a19e3c

Please sign in to comment.