fixed article order
This commit is contained in:
1 parent
1d1b697d46
commit
9f113a8588
3 files changed
+9
-11
No files matched your search
+4
-4
@@ -1,8 +1,8 @@
|
||||
---
|
||||
|
||||
-
|
||||
date: 2016/05/5 # year/month/day
|
||||
time: Hors Concours
|
||||
date: 2016/5/5 # year/month/day
|
||||
time: "18:30"
|
||||
home: gris
|
||||
away: jaune
|
||||
home_points: ~
|
||||
@@ -10,8 +10,8 @@
|
||||
exibition: yes
|
||||
|
||||
-
|
||||
date: 2016/05/5 # year/month/day
|
||||
time: Hors Concours
|
||||
date: 2016/5/5 # year/month/day
|
||||
time: "20:00"
|
||||
home: rouge
|
||||
away: bleu
|
||||
home_points: ~
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
define(['m', 'articles/inscription', 'articles/inscription_rappel'], function (m, inscription, inscription_rappel) {
|
||||
|
||||
var simplifyArticleStructure = function(article){
|
||||
var ret = {};
|
||||
_.each(article, function(section, sectionName){
|
||||
@@ -8,11 +7,10 @@ define(['m', 'articles/inscription', 'articles/inscription_rappel'], function (m
|
||||
return ret;
|
||||
};
|
||||
|
||||
var articles = [];
|
||||
articles.push(inscription);
|
||||
articles.push(inscription_rappel);
|
||||
|
||||
|
||||
var articles = [
|
||||
inscription_rappel,
|
||||
inscription
|
||||
];
|
||||
|
||||
return _.map(articles, simplifyArticleStructure);
|
||||
});
|
||||
@@ -16,7 +16,7 @@ define(['m', '_', 'util', 'resultParser', 'articles/articles', 'views/topNavBar'
|
||||
};
|
||||
|
||||
newsPageBody.view = function(){
|
||||
var arts = _.map(articles, newsPageBody.getArticle);
|
||||
var arts = _.reverse(_.map(articles, newsPageBody.getArticle));
|
||||
return m('div', util.join(arts, m('hr')));
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user