Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 3dad088

Browse files
committed
reformat downloads
1 parent d8fcbaa commit 3dad088

File tree

2 files changed

+38
-51
lines changed

2 files changed

+38
-51
lines changed

public/download/_data.json

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,52 @@
44
"subtitle": "Choose from our list of frameworks",
55

66
"downloads": {
7-
"Angular_2": {
8-
"description": "Angular 2 is currently in Developer Preview for JavaScript and Dart.",
9-
"2.0.0-alpha for JavaScript": {
10-
"npm": "https://www.npmjs.com/package/angular2"
11-
},
12-
"2.0.0-alpha for Dart": {
13-
"pub": "https://pub.dartlang.org/packages/angular2#installing"
14-
}
7+
"Angular_2_JS": {
8+
"name": "Angular 2 (JavaScript)",
9+
"language": "JavaScript",
10+
"version": "2.0.0-alpha",
11+
"url": "https://www.npmjs.com/package/angular2",
12+
"description": "Angular 2 is currently in Developer Preview for JavaScript and Dart."
1513
},
1614

17-
"Angular_1": {
18-
"description": "The production ready version of Angular for JavaScript",
19-
20-
"1": {
21-
"file": "https://code.angularjs.org/"
22-
}
15+
"Angular_2_DART": {
16+
"name": "Angular 2 (Dart)",
17+
"language": "Dart",
18+
"version": "2.0.0-alpha",
19+
"url": "https://pub.dartlang.org/packages/angular2#installing",
20+
"description": "Angular 2 is currently in Developer Preview for JavaScript and Dart."
2321
},
2422

25-
"AngularDart_1": {
26-
"description": "The production ready version of Angular for Dart",
23+
"Angular_1_JS": {
24+
"name": "Angular 1 (JavaScript)",
25+
"language": "Javascript",
26+
"version": "1",
27+
"url": "https://code.angularjs.org/",
28+
"description": "The production ready version of Angular for JavaScript"
29+
},
2730

28-
"1": {
29-
"file": "https://angulardart.org/"
30-
}
31+
"Angular_1_DART": {
32+
"name": "Angular 1 (Dart)",
33+
"language": "Dart",
34+
"version": "1",
35+
"url": "https://angulardart.org/",
36+
"description": "The production ready version of Angular for Dart"
3137
},
3238

3339
"AngularFire_1": {
34-
"description": "AngularFire is the officially supported Angular binding for Firebase.",
35-
"1": {
36-
"file": "https://www.firebase.com/docs/web/libraries/angular/index.html"
37-
}
40+
"name": "AngularFire",
41+
"language": "Javascript",
42+
"version": "1",
43+
"url": "https://www.firebase.com/docs/web/libraries/angular/index.html",
44+
"description": "AngularFire is the officially supported Angular binding for Firebase."
3845
},
3946

4047
"AngularMaterial_1": {
41-
"description": "The Angular Material project is an implementation of Material Design in Angular 1 for JS.",
42-
"1": {
43-
"file": "https://material.angularjs.org/#/getting-started"
44-
}
48+
"name": "Angular Material",
49+
"language": "Javascript",
50+
"version": "1",
51+
"url": "https://material.angularjs.org/#/getting-started",
52+
"description": "The Angular Material project is an implementation of Material Design in Angular 1 for JS."
4553
}
4654
}
4755
}

public/download/index.jade

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
11
.grid-fluid.l-space-bottom-8
2-
for versions, framework in downloads
3-
div.c9.l-space-bottom-4
4-
frameworkName = framework.replace(/\_/gm, ' ')
5-
header
6-
h2.text-headline #{frameworkName}
7-
8-
9-
for version, name in versions
10-
if name == "description"
11-
p #{version}
12-
13-
else
14-
ul.l-pad-left-0
15-
if version.file
16-
li
17-
!= partial("../_includes/_hover-card", {name: "Version " + name, url: version.file })
18-
19-
if version.npm
20-
li
21-
!= partial("../_includes/_hover-card", {name: "Version " + name, url: version.npm })
22-
23-
if version.pub
24-
li
25-
!= partial("../_includes/_hover-card", {name: "Version " + name, url: version.pub })
2+
for slug, framework in downloads
3+
div.c9.l-space-bottom-2
4+
!= partial("../_includes/_hover-card", {name: slug.name , url: slug.url })

0 commit comments

Comments
 (0)