Testing downloads

This commit is contained in:
David Vierra 2016-08-24 17:13:59 -10:00
parent df529d8557
commit d7d8f2e648
2 changed files with 19 additions and 27 deletions

View File

@ -11,14 +11,7 @@ layout: download_page
<h1>Release Versions <h1>Release Versions
</h1> </h1>
<div class="alert">
As MCEdit 2.0 is currently in alpha, no release versions are available.
<br><br>
Release versions of MCEdit 1.0 are provided by the MCEdit-Unified team.
<a href="http://khroki.github.io/MCEdit-Unified/">Click here to download MCEdit 1.0</a> (If the website is down, <a href="https://github.com/Khroki/MCEdit-Unified/releases">click here for direct downloads</a>)
</div>
<h1>Development Versions</h1>
<div class="alert"> <div class="alert">
Development Versions are released once per day, if there have been any changes to the source code. These versions are Development Versions are released once per day, if there have been any changes to the source code. These versions are
not well-tested and are not recommended for serious use. not well-tested and are not recommended for serious use.
@ -28,34 +21,37 @@ not well-tested and are not recommended for serious use.
<div ng-controller="DownloadListCtrl"> <div ng-controller="DownloadListCtrl">
<table class="download-list"> <table class="download-list">
<tr class="infos" ng-repeat-start="download in downloads"> <tr class="infos" ng-repeat-start="download in downloads">
<td class="rev">{{download.rev}}</td> <td class="tag_name">{{download.tag_name}}</td>
<td class="date" title="{{download.rev_date | date : 'medium' }}">{{download.rev_date | fromNow}}</td> <td class="date" title="{{download.published_at | date : 'medium' }}">{{download.published_at | fromNow}}</td>
<td class="description"> <td class="description">
<a href="https://github.com/mcedit/mcedit2/commits/{{download.rev_hash}}">{{download.rev_desc}}</a> <a href="https://github.com/mcedit/mcedit2/commits/{{download.target_commitish}}">{{download.target_commitish}}</a>
</td> </td>
</tr> </tr>
<tr class="links" ng-repeat-end> <tr class="links">
<td></td> <td></td>
<td colspan="2"> <td colspan="2" ng-repeat-start="asset in download.assets">
<a class="btn btn-default always-ltr x64" <a class="btn btn-default always-ltr x64"
href="https://download.nodecdn.net/containers/mcedit/download/dev/mcedit2-win64-{{download.rev}}.exe"> href="{{asset.browser_download_url}}">
<span class="glyphicon glyphicon-download-alt" aria-hidden="true" <span class="glyphicon glyphicon-download-alt" aria-hidden="true"
style="margin-right:10px"></span>Windows (64-bit)</a> style="margin-right:10px"></span>(Platform)</a>
<a class="btn btn-default always-ltr x32"
href="https://download.nodecdn.net/containers/mcedit/download/dev/mcedit2-win32-{{download.rev}}.exe">
<span class="glyphicon glyphicon-download-alt" aria-hidden="true"
style="margin-right:10px"></span>Windows (32-bit)</a>
</td> </td>
<p ng-repeat-end></p>
</tr> </tr>
</table> </table>
</div> </div>
</div> </div>
<div align="center" style="margin-top:8em">Content hosting for development versions provided by:<br> <!--<div align="center" style="margin-top:8em">Content hosting for development versions provided by:<br>
<a href="https://nodecraft.com/"> <a href="https://nodecraft.com/">
<img src="/images/community-partner.png" style="margin-top: 0.5em"> <img src="/images/community-partner.png" style="margin-top: 0.5em">
</a> </a>
</div>-->
<div class="alert">
<br><br>
Older versions of MCEdit 1.0 are provided by the MCEdit-Unified team.
<a href="http://khroki.github.io/MCEdit-Unified/">Click here to download MCEdit 1.0</a> (If the website is down, <a href="https://github.com/Khroki/MCEdit-Unified/releases">click here for direct downloads</a>)
</div> </div>
<br><br><br> <br><br><br>

View File

@ -1,15 +1,11 @@
var dlApp = angular.module('dlApp', []); var dlApp = angular.module('dlApp', []);
var MODEL_URL = 'https://download.nodecdn.net/containers/mcedit/downloads.jsonp'; var MODEL_URL = 'https://api.github.com/repos/mcedit/mcedit2/releases';
var DL_SCOPE;
function MCEDIT2_DOWNLOADS(data) {
DL_SCOPE.downloads = data;
}
dlApp.controller('DownloadListCtrl', function ($scope, $http) { dlApp.controller('DownloadListCtrl', function ($scope, $http) {
DL_SCOPE=$scope; $http.get(MODEL_URL).success(function(data) {
$http.jsonp(MODEL_URL); $scope.downloadData = data
})
}); });