|
13 | 13 | <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> |
14 | 14 |
|
15 | 15 | </head> |
16 | | -<body> |
| 16 | +<body ng-controller="GitHubCtrl"> |
17 | 17 |
|
18 | 18 | <div class="menu"> |
19 | 19 | <div data-magellan-expedition="fixed"> |
@@ -62,40 +62,52 @@ <h3>Brackets</h3> |
62 | 62 | Projects |
63 | 63 | -------------------------------------------------------------------------------------- --> |
64 | 64 |
|
65 | | - <div class="large-12 columns" ng-controller="ProjectCtrl"> |
| 65 | + <div class="large-12 columns"> |
66 | 66 | <a name="projects"></a> |
67 | 67 | <h2 data-magellan-destination="projects">Projects</h2> |
68 | 68 |
|
69 | | - <div class="row"> |
70 | | - <div class="large-6 columns" ng-repeat="project in projects.slice(projFirst, projLast) | orderBy:'-watchers_count'" ng-class-odd="'clear'"> |
71 | | - <a href="{{project | link}}" target="_blank"> |
72 | | - <section class="project"> |
73 | | - <div class="row"> |
74 | | - <div class="large-6 columns"> |
75 | | - <h1>{{project.name}}</h1> |
76 | | - </div> |
77 | | - <div class="large-6 columns"> |
78 | | - <div class="star" ng-repeat="i in [0,1,2,3,4]"> |
79 | | - <img ng-src="img/star_{{ { id: 4-i, value: project.watchers_count} | star}}.svg" /> |
80 | | - </div> |
81 | | - |
82 | | - <div class="watchCount">{{project.watchers_count | niceNum}}</div> |
83 | | - </div> |
84 | | - </div> |
85 | | - <p class="language"><span ng-repeat="language in project.languages | orderBy:'-value'" ng-hide="Math.floor( language.value * 100 / project.languagesTotal ) < 10 ">{{language.name}}<span ng-hide="$last">, </span></span><span ng-hide="project.languages.length != 0">Unknown</span></p> |
86 | | - <p class="details">{{project.description | shortenStr}}</p> |
87 | | - <p class="more">Learn more...</p> |
88 | | - </section> |
89 | | - </a> |
90 | | - </div> |
91 | | - </div> |
92 | | - |
93 | | - <div class="row text-center"> |
94 | | - <button class="button" ng-click="showHideProj()"> |
95 | | - <span ng-hide="projLast == 100">Show more...</span> |
96 | | - <span ng-hide="projLast == 10">Show less...</span> |
97 | | - </button> |
98 | | - </div> |
| 69 | + <div ng-show="loading == false"> |
| 70 | + <div class="row"> |
| 71 | + <div class="large-6 columns" ng-repeat="project in projects.slice(projFirst, projLast) | orderBy:'-watchers_count'" ng-class-odd="'clear'"> |
| 72 | + <a href="{{project | link}}" target="_blank"> |
| 73 | + <section class="project"> |
| 74 | + <div class="row"> |
| 75 | + <div class="large-6 columns"> |
| 76 | + <h1>{{project.name}}</h1> |
| 77 | + </div> |
| 78 | + <div class="large-6 columns"> |
| 79 | + <div class="star" ng-repeat="i in [0,1,2,3,4]"> |
| 80 | + <img ng-src="img/star_{{ { id: 4-i, value: project.watchers_count} | star}}.svg" /> |
| 81 | + </div> |
| 82 | + |
| 83 | + <div class="watchCount">{{project.watchers_count | niceNum}}</div> |
| 84 | + </div> |
| 85 | + </div> |
| 86 | + <div class="row"> |
| 87 | + <p class="details large-6 columns"><span ng-repeat="language in project.languages | orderBy:'-value'" ng-hide="Math.floor( language.value * 100 / project.languagesTotal ) < 10 ">{{language.name}}<span ng-hide="$last">, </span></span><span ng-hide="project.languages.length != 0">Unknown</span></p> |
| 88 | + <p class="details large-6 columns text-right">{{project.org}}</p> |
| 89 | + </div> |
| 90 | + <p class="details">{{project.description | shortenStr}}</p> |
| 91 | + <div class="row more"> |
| 92 | + <p class="details large-6 columns"><strong>Last pushed:</strong> {{project.pushed_at | timeDiff }}</p> |
| 93 | + <p class="link large-6 columns">Learn more...</p> |
| 94 | + </div> |
| 95 | + </section> |
| 96 | + </a> |
| 97 | + </div> |
| 98 | + </div> |
| 99 | + |
| 100 | + <div class="row text-center"> |
| 101 | + <button class="button" ng-click="showHideProj()"> |
| 102 | + <span ng-hide="projLast == 100">Show more...</span> |
| 103 | + <span ng-hide="projLast == 10">Show less...</span> |
| 104 | + </button> |
| 105 | + </div> |
| 106 | + </div> |
| 107 | + |
| 108 | + <div ng-hide="loading == false"> |
| 109 | + Loading... |
| 110 | + </div> |
99 | 111 | </div> |
100 | 112 | </div> |
101 | 113 | </div> |
@@ -126,101 +138,20 @@ <h2 data-magellan-destination="organisations">Organisations</h2> |
126 | 138 |
|
127 | 139 | <!-- Grid Example --> |
128 | 140 | <div class="row"> |
129 | | - <div class="large-6 columns"> |
130 | | - <section class="project"> |
131 | | - <h1>Crossbridge</h1> |
132 | | - <p class="language">C++</p> |
133 | | - <p class="details">A C++ to ActionScript compiler toolchain.</p> |
134 | | - <p class="more"><a href="">Learn more...</a></p> |
135 | | - </section> |
136 | | - </div> |
137 | | - <div class="large-6 columns"> |
138 | | - <section class="project"> |
139 | | - <h1>Crossbridge</h1> |
140 | | - <p class="language">C++</p> |
141 | | - <p class="details">A C++ to ActionScript compiler toolchain.</p> |
142 | | - <p class="more"><a href="">Learn more...</a></p> |
143 | | - </section> |
144 | | - </div> |
145 | | - </div> |
146 | | - |
147 | | - <!-- Grid Example --> |
148 | | - <div class="row"> |
149 | | - <div class="large-6 columns"> |
150 | | - <section class="project"> |
151 | | - <h1>Crossbridge</h1> |
152 | | - <p class="language">C++</p> |
153 | | - <p class="details">A C++ to ActionScript compiler toolchain.</p> |
154 | | - <p class="more"><a href="">Learn more...</a></p> |
155 | | - </section> |
156 | | - </div> |
157 | | - <div class="large-6 columns"> |
158 | | - <section class="project"> |
159 | | - <h1>Crossbridge</h1> |
160 | | - <p class="language">C++</p> |
161 | | - <p class="details">A C++ to ActionScript compiler toolchain.</p> |
162 | | - <p class="more"><a href="">Learn more...</a></p> |
163 | | - </section> |
164 | | - </div> |
165 | | - </div> |
166 | | - |
167 | | - <!-- Grid Example --> |
168 | | - <div class="row"> |
169 | | - <div class="large-6 columns"> |
170 | | - <section class="project"> |
171 | | - <h1>Crossbridge</h1> |
172 | | - <p class="language">C++</p> |
173 | | - <p class="details">A C++ to ActionScript compiler toolchain.</p> |
174 | | - <p class="more"><a href="">Learn more...</a></p> |
175 | | - </section> |
176 | | - </div> |
177 | | - <div class="large-6 columns"> |
178 | | - <section class="project"> |
179 | | - <h1>Crossbridge</h1> |
180 | | - <p class="language">C++</p> |
181 | | - <p class="details">A C++ to ActionScript compiler toolchain.</p> |
182 | | - <p class="more"><a href="">Learn more...</a></p> |
183 | | - </section> |
184 | | - </div> |
185 | | - </div> |
186 | | - |
187 | | - <!-- Grid Example --> |
188 | | - <div class="row"> |
189 | | - <div class="large-6 columns"> |
190 | | - <section class="project"> |
191 | | - <h1>Crossbridge</h1> |
192 | | - <p class="language">C++</p> |
193 | | - <p class="details">A C++ to ActionScript compiler toolchain.</p> |
194 | | - <p class="more"><a href="">Learn more...</a></p> |
195 | | - </section> |
196 | | - </div> |
197 | | - <div class="large-6 columns"> |
198 | | - <section class="project"> |
199 | | - <h1>Crossbridge</h1> |
200 | | - <p class="language">C++</p> |
201 | | - <p class="details">A C++ to ActionScript compiler toolchain.</p> |
202 | | - <p class="more"><a href="">Learn more...</a></p> |
203 | | - </section> |
204 | | - </div> |
205 | | - </div> |
206 | | - |
207 | | - <!-- Grid Example --> |
208 | | - <div class="row"> |
209 | | - <div class="large-6 columns"> |
210 | | - <section class="project"> |
211 | | - <h1>Crossbridge</h1> |
212 | | - <p class="language">C++</p> |
213 | | - <p class="details">A C++ to ActionScript compiler toolchain.</p> |
214 | | - <p class="more"><a href="">Learn more...</a></p> |
215 | | - </section> |
216 | | - </div> |
217 | | - <div class="large-6 columns"> |
218 | | - <section class="project"> |
219 | | - <h1>Crossbridge</h1> |
220 | | - <p class="language">C++</p> |
221 | | - <p class="details">A C++ to ActionScript compiler toolchain.</p> |
222 | | - <p class="more"><a href="">Learn more...</a></p> |
223 | | - </section> |
| 141 | + <div class="large-6 columns" ng-repeat="org in orgs" ng-class-odd="'clear'"> |
| 142 | + <a href="http://github.com/{{org.userName}}" target="_blank"> |
| 143 | + <section class="project"> |
| 144 | + <div class="row"> |
| 145 | + <div class="large-6 columns"> |
| 146 | + <h1>{{org.name}}</h1> |
| 147 | + </div> |
| 148 | + <div class="large-6 columns"> |
| 149 | + </div> |
| 150 | + </div> |
| 151 | + <p class="details">{{org.desc | shortenStr}}</p> |
| 152 | + <p class="more">Learn more...</p> |
| 153 | + </section> |
| 154 | + </a> |
224 | 155 | </div> |
225 | 156 | </div> |
226 | 157 | </div> |
|
0 commit comments