Skip to content

Commit 0fffc02

Browse files
committed
New downloads page with NodeCDN hosted files
1 parent 5d07f06 commit 0fffc02

File tree

10 files changed

+133
-16
lines changed

10 files changed

+133
-16
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
source 'http://rubygems.org/'
22
gem 'github-pages'
3+
gem 'wdm', '>= 0.1.0'

_includes/footer.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
<div class="container-fluid">
2-
<div class="row-fluid">
3-
<div class="span12 footer navbar-inverse navbar-fixed-bottom">
4-
<p class="copyright">&copy;{{ site.time | date: '%Y' }} {{ site.name }}. Powered by <a href="http://jekyllrb.com">Jekyll</a>, theme by <a href="https://github.com/scotte/jekyll-clean">Scott Emmons</a>
5-
under
6-
<a href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution</a></p>
7-
</div>
8-
</div>
9-
</div>
101

112
{% include disqus-counts.html %}
123
{% include analytics.html %}

_includes/header.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
88
<script src="{{ site.baseurl }}/js/jquery.min.js"></script>
99
<script src="{{ site.baseurl }}/js/bootstrap.min.js"></script>
10+
1011
<link href="{{ site.baseurl }}/css/bootstrap.min.css" rel="stylesheet">
1112
<link href="{{ site.baseurl }}/css/theme.css" rel="stylesheet">
1213
<link href="{{ site.baseurl }}/css/mcedit.css" rel="stylesheet">
@@ -33,11 +34,10 @@
3334
<li><a href="{{ site.baseurl }}/">Home</a></li>
3435
<li class="visible-xs-block"><a href="{{ site.baseurl }}/links.html">Links</a></li>
3536
<li><a href="{{ site.baseurl }}/about.html">About</a></li>
37+
<li><a href="{{ site.baseurl }}/downloads.html">Download</a></li>
3638
<li><a href="https://github.com/{{ site.github }}/issues">Report Issue</a></li>
37-
{% if site.github != '' %}
38-
<li><a href="https://github.com/{{ site.github }}">Develop</a></li>
39-
{% endif %}
40-
<li><a href="http://khroki.github.io/MCEdit-Unified/">MCEdit 1.x</a></li>
39+
<li><a href="https://github.com/{{ site.github }}">Source Code</a></li>
40+
<li><a href="http://khroki.github.io/MCEdit-Unified/">MCEdit 1.0</a></li>
4141
</ul>
4242
<ul class="nav navbar-nav navbar-right">
4343
<li>

_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="sidebar well">
22

3-
<a href="http://github.com/mcedit/mcedit2/releases" class="btn btn-default btn-download">
3+
<a href="/downloads.html" class="btn btn-default btn-download">
44
<span class="glyphicon glyphicon-download-alt" aria-hidden="true"
55
style="margin-right:10px"></span>Download MCEdit</a>
66

css/mcedit.css

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ a.btn-download {
2828
color: white;
2929

3030
}
31-
/* --- download links --- */
31+
/* --- sidebar download links --- */
3232
.latest-version {
3333
margin: 12px;
3434
}
@@ -40,6 +40,38 @@ a.btn-download {
4040
line-height: 26px;
4141
padding-left: 26px;
4242
}
43+
44+
/* --- downloads page table --- */
45+
46+
.download-list {
47+
width: 100%;
48+
}
49+
50+
.download-list tr.infos {
51+
border-top: 1px solid #CCC;
52+
}
53+
54+
.download-list .infos td {
55+
padding: 0.6em 0.25em 0.5em;
56+
}
57+
58+
.download-list .infos td.rev {
59+
width: 18%;
60+
font-weight:bold;
61+
text-align: center;
62+
}
63+
.download-list .infos td.date {
64+
width: 18%;
65+
text-align: center;
66+
}
67+
68+
.download-list .infos .description {
69+
font-style:italic;
70+
}
71+
.download-list .links td {
72+
padding: 0.6em 0.25em 0.5em;
73+
74+
}
4375
/* --- icons --- */
4476

4577
.li-icon-windows {
@@ -53,3 +85,13 @@ a.btn-download {
5385
.li-icon-apple {
5486
background-image: url("/images/icon-apple.png")
5587
}
88+
89+
/* --- bootstrap.css theming --- */
90+
91+
.alert {
92+
border-color: #EEE;
93+
}
94+
95+
.page-header {
96+
margin-top:10px;
97+
}

css/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ body {
44
}
55

66
.copyright {
7-
color: #ffffff;
7+
color: #777777;
88
}
99

1010
.footer {

downloads.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
layout: default
3+
---
4+
{% raw %}
5+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js"></script>
6+
<script src="/js/moment.min.js"></script>
7+
<script src="/js/ng/dl-control.js"></script>
8+
<div class="page-header">
9+
<h1>Downloads</h1>
10+
</div>
11+
12+
<h1>Release Versions
13+
</h1>
14+
<div class="alert">
15+
As MCEdit 2.0 is currently in alpha, no release versions are available.
16+
</div>
17+
18+
<h1>Development Versions</h1>
19+
<div class="alert">
20+
Development Versions are released once per day, if there have been any changes to the source code. These versions are
21+
not well-tested and are not recommended for serious use.
22+
</div>
23+
24+
<div ng-app="dlApp">
25+
<div ng-controller="DownloadListCtrl">
26+
<table class="download-list">
27+
<tr class="infos" ng-repeat-start="download in downloads">
28+
<td class="rev">{{download.rev}}</td>
29+
<td class="date" title="{{download.rev_date | date : 'medium' }}">{{download.rev_date | fromNow}}</td>
30+
31+
<td class="description">
32+
<a href="https://github.com/mcedit/mcedit2/commits/{{download.rev_hash}}">{{download.rev_desc}}</a>
33+
</td>
34+
</tr>
35+
<tr class="links" ng-repeat-end>
36+
<td></td>
37+
<td colspan="2">
38+
<a class="btn btn-default always-ltr x64"
39+
href="http://download.nodecdn.net/containers/mcedit/download/dev/mcedit2-win64-{{download.rev}}.exe">
40+
<span class="glyphicon glyphicon-download-alt" aria-hidden="true"
41+
style="margin-right:10px"></span>Windows (64-bit)</a>
42+
<a class="btn btn-default always-ltr x32"
43+
href="http://download.nodecdn.net/containers/mcedit/download/dev/mcedit2-win32-{{download.rev}}.exe">
44+
<span class="glyphicon glyphicon-download-alt" aria-hidden="true"
45+
style="margin-right:10px"></span>Windows (32-bit)</a>
46+
</td>
47+
</tr>
48+
</table>
49+
</div>
50+
</div>
51+
52+
<div align="center" style="margin-top:8em">Content hosting for development versions provided by:<br>
53+
<a href="https://nodecraft.com/">
54+
<img src="/images/nodecraft_237_65.png">
55+
</a>
56+
</div>
57+
{% endraw %}

images/nodecraft_237_65.png

15.9 KB
Loading

js/moment.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/ng/dl-control.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
var dlApp = angular.module('dlApp', []);
2+
var MODEL_URL = 'http://download.nodecdn.net/containers/mcedit/downloads.jsonp';
3+
4+
var DL_SCOPE;
5+
6+
function MCEDIT2_DOWNLOADS(data) {
7+
DL_SCOPE.downloads = data;
8+
}
9+
10+
dlApp.controller('DownloadListCtrl', function ($scope, $http) {
11+
DL_SCOPE=$scope;
12+
$http.jsonp(MODEL_URL);
13+
14+
});
15+
16+
dlApp.filter('fromNow', function() {
17+
return function(date) {
18+
return moment(date).fromNow();
19+
}
20+
});

0 commit comments

Comments
 (0)