aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-01 21:30:42 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-01 21:30:42 +0000
commitbbc20228c0ebdf41cbac05983c7024bac1ed8555 (patch)
tree9f0d84d434da4135bff0b37f2da2f39643215755
parentfe50163cf7be2a2701c49c7d5fa2c509d03f4b52 (diff)
downloadwww-bbc20228c0ebdf41cbac05983c7024bac1ed8555.tar
www-bbc20228c0ebdf41cbac05983c7024bac1ed8555.tar.gz
www-bbc20228c0ebdf41cbac05983c7024bac1ed8555.tar.bz2
www-bbc20228c0ebdf41cbac05983c7024bac1ed8555.tar.xz
www-bbc20228c0ebdf41cbac05983c7024bac1ed8555.zip
Use treasurer.mageia.org data to update donators list
-rw-r--r--en/thank-you/index.php7
-rw-r--r--g/js/donators-list.js426
2 files changed, 432 insertions, 1 deletions
diff --git a/en/thank-you/index.php b/en/thank-you/index.php
index c40407059..5ad86ca97 100644
--- a/en/thank-you/index.php
+++ b/en/thank-you/index.php
@@ -17,6 +17,8 @@ include '../../donators.inc.php';
<meta name="author" content="Mageia">
<link rel="stylesheet" type="text/css" href="/g/style/all.css">
<?php include '../../analytics.php'; ?>
+ <script src="http://static.mageia.org/g/js/jquery-1.10.1.min.js"></script>
+ <script src="http://static.mageia.org/g/js/donators-list.js"></script>
</head>
<body class="about">
<?php echo $hsnav; ?>
@@ -35,7 +37,10 @@ include '../../donators.inc.php';
echo sprintf(_t('%d amazing people %sdonated money%s to Mageia.Org:'),
$pp['count'], '<a href="../donate/">', '</a>');
?></p>
- <?php echo $pp['list']; ?>
+ <ul id="donlist" class="ty-ppl-list"></ul>
+ <p>
+ <?php _e('Last update:') ?> <span id="last_update"></span>
+ </p>
</section>
<section class="para" style="width: 20%; text-align: left; float: left;">
<p><?php _e('Since September 2010, Mageia would not have come to a reality without the enthusiasm, advice and involvement of hundreds of people.')?></p>
diff --git a/g/js/donators-list.js b/g/js/donators-list.js
new file mode 100644
index 000000000..2fe3be479
--- /dev/null
+++ b/g/js/donators-list.js
@@ -0,0 +1,426 @@
+var treasurer_infos_url = 'http://treasurer.mageia.org/index.json';
+var donations_who_url = 'http://treasurer.mageia.org/donations_who.json';
+
+var previous_donors_url = 'http://treasurer.mageia.org/donations_p_4.html';
+var previous_donors = [
+ 'Abel Rodríguez Reádigos',
+ 'ACL Consultans Corporation',
+ 'Adrien Guichard',
+ 'Åke Mellin',
+ 'Alain Déchamps',
+ 'Alain Graveline',
+ 'Alain Gudefin',
+ 'Alain Lamarche',
+ 'Alejandro Diaz Infante',
+ 'Alejandro Lopez',
+ 'Alexander Andreyev',
+ 'Alexander Butler',
+ 'Alexandre Lucazeau',
+ 'Alfred Lang',
+ 'Allan Gendelman',
+ 'Andreas Hiekel',
+ 'Andreas Michaelis',
+ 'Andrew Edwards',
+ 'Andrew Hill',
+ 'Andrew Toller',
+ 'Andrey Belyaev',
+ 'Angelika Furrer',
+ 'Ángel Jiménez Álvaro',
+ 'Antoine de Chambost',
+ 'Antonio Pessoa',
+ 'Antonio Pimentel',
+ 'Arnaud Gibert',
+ 'Arnaud Vacquier',
+ 'Attila Tóth',
+ 'Aymerich Munoz Jose Ignacio',
+ 'Barry Jackson',
+ 'Basilio Rosa',
+ 'B D Granger',
+ 'Bernard Siaud',
+ 'Bernd Deinzer',
+ 'Bert Aerts',
+ 'Bjarne Thomsen',
+ 'Bjørn Kvisli',
+ 'Björn Olsson',
+ 'Bob McCreadie',
+ 'Brent Wyatt',
+ 'Brian Alleyne',
+ 'Brian Hewitt',
+ 'Brian McNeil',
+ 'Brian Saunderson',
+ 'Bruno Vanhove',
+ 'Carlos Vives Bullejos',
+ 'Carolyn Rowse',
+ 'Cedric Drolet',
+ 'Céline Harrand (leeloo)',
+ 'Chris Demaeyer',
+ 'Christian Fischer',
+ 'Christian Henri Fischer',
+ 'Christian Prio',
+ 'Claude Gilson',
+ 'Corrado Bove',
+ 'Curtis Herle',
+ 'Daniel Le Berre',
+ 'Daniel Pfenniger',
+ 'Dariusz Wielebinski',
+ 'Dave Null',
+ 'Dave Postles',
+ 'David Hallam',
+ 'David Pernot (deap)',
+ 'David Postles',
+ 'David Queen',
+ 'Denis Marcq',
+ 'Derek Jennings',
+ 'Deri James',
+ 'Design D4PB',
+ 'Dick Gevers',
+ 'Didier Chaigne',
+ 'Didier Lallement',
+ 'Didier Leunen (sisopetron)',
+ 'Dieter Rogiest',
+ 'Dirk Mrosek',
+ 'Distrowatch.com',
+ 'Dominique Poirier',
+ 'Donald Boyd',
+ 'Douglas Trent',
+ 'Doug Lytle',
+ 'Duncan MacGregor',
+ 'Dušan Pavlík',
+ 'Eduardo Castiello Armayor',
+ 'Eduardo Llana Ugalde',
+ 'Edward Janusz',
+ 'Emmanuel Andry',
+ 'Enrico Gsell',
+ 'Eric Barbero',
+ 'Eric Dietrich',
+ 'Ernst Pini',
+ 'Erwien Yustitiawan',
+ 'Etienne Berger',
+ 'Eugeniy Rozhkov',
+ 'Fabio Riccio',
+ 'Fabrice DANT',
+ 'Fabrice Deslandes',
+ 'Fabrice Gaillard',
+ 'Fabrice Jade',
+ 'Felipe Valladolid Gonzalo',
+ 'Florian Berthol',
+ 'Florian Siegenthaler',
+ 'Francesca Silvana Scoppio',
+ 'Francesco De Crescenzo',
+ 'François Jaouen',
+ 'François Lamboley',
+ 'François Lermusiau',
+ 'François Millasson',
+ 'François Pellegrini',
+ 'Frank Eisele',
+ 'Franz Holzinger',
+ 'Franz Senftl',
+ 'Freddy Janssens',
+ 'Frédéric Bonnaud',
+ 'Frédéric Buclin',
+ 'Frederic Forjan',
+ 'Frédéric Hugot',
+ 'Gabor Alba',
+ 'Gabriel Diosan',
+ 'George Goslin',
+ 'George Magill',
+ 'George Mitchell',
+ 'Gerald Sprik',
+ 'Gérard Calas',
+ 'Gerardo Bueno Jiménez',
+ 'Gianpiero Baglioni',
+ 'Gilles Casetou',
+ 'giorgio f lazzari',
+ 'Giovanni Salvi',
+ 'Giuseppe Juri Facchinetti',
+ 'Glen Ogilvie',
+ 'Gonzalo Igartua',
+ 'Grigory Maksaev',
+ 'Guillaume Cottenceau',
+ 'Guillemot Yves',
+ 'Guy Laurent',
+ 'Hans Micheelsen',
+ 'Harold W Daley',
+ 'Heiko Geier',
+ 'Heinz Luitz',
+ 'Henk Elbers',
+ 'Hoyt Duff',
+ 'HTJ Simons',
+ 'Ilya Diallo',
+ 'Ivar Øines',
+ 'Jacob Daniels',
+ 'Jacques Anzeray',
+ 'Jacques Degois',
+ 'Jacques Paret-Gris',
+ 'Jacques Spring',
+ 'James Campbell',
+ 'J. and N. Stiegler',
+ 'Jan-Gunnar Pihlgren',
+ 'Jani J Välimaa',
+ 'Jarle Bremnes',
+ 'Jason Schindler',
+ 'J. David Eisenberg',
+ 'Jean Christophe Lluch',
+ 'Jean-Claude Colette',
+ 'Jean Derouet',
+ 'jean-fernand tixier',
+ 'Jean-François Ansart',
+ 'Jean-François Bellanger',
+ 'Jean-Francois Cayula',
+ 'Jean-François Ramez',
+ 'Jean Goujon',
+ 'Jean-Guy Tesseraud',
+ 'Jean-jacques Barret',
+ 'Jean-Jacques Barret',
+ 'Jean-Luc Versini',
+ 'Jean-Marc Sarat',
+ 'Jean-Michel Varvou',
+ 'Jean-Michel Varvou (vouf)',
+ 'Jean Monnard',
+ 'Jean Peyratout',
+ 'Jean Sié',
+ 'Jeffrey Bruton',
+ 'Jeffrey Kuhn',
+ 'Jens Jablonski',
+ 'Jérémie Servel',
+ 'Jérôme Benoit',
+ 'Jérôme Durand',
+ 'Jerome Martin (jmartin)',
+ 'Jesus del Castillo Baena',
+ 'Jin-tong Hu',
+ 'Joao P S Carvalho',
+ 'Joep van Ham',
+ 'Johannes Balke',
+ 'Johnny Christiansen',
+ 'Jonathan Bayle',
+ 'Jonathan Statler',
+ 'Jose Fernández Rosa',
+ 'Jose Luis Monzonis Cabrera',
+ 'Jose Luis Nunez Crespi',
+ 'Jose Paulo Batista Silva',
+ 'Josep Guallar-Esteve',
+ 'Joseph Hubert',
+ 'Josy Pullockara',
+ 'Juan Barea Sanchez',
+ 'Julia Jumeau',
+ 'Julien Artacho Nieto',
+ 'Julien Simon',
+ 'Julio Geraldo',
+ 'Jurgen and Monika Harms',
+ 'Jurgen Thurau',
+ 'Jürgen Thurau',
+ 'Jurij Galickij',
+ 'Kenneth Marsol Llop',
+ 'Kenneth Parkes',
+ 'Kimmo Suutala',
+ 'Kindl, Tomas, Judr.',
+ 'Kris Thomsen',
+ 'Lanfranco Gandolfo',
+ 'Laurent Breton',
+ 'Laurent Clerel',
+ 'Laurent Espitallier',
+ 'Laurent Trougnou',
+ 'L C Lawrence',
+ 'L. C. Lawrence',
+ 'LibreStickers',
+ 'Liu Pow San',
+ 'Livre Livre',
+ 'Loïc Carré',
+ 'Louis Ramel',
+ 'Louis Soriano',
+ 'Lucas Betschart',
+ 'Luca Tani',
+ 'Ludwig Lemke',
+ 'Luis Chee Espinoza',
+ 'Luis Maria Garcia Ruiperez',
+ 'Lyoness Europe AG',
+ 'Manuel Fernandes Alonso',
+ 'Marcel Sahaghian',
+ 'Marc Gibert',
+ 'Marc Hotias',
+ 'Marc Montalbine',
+ 'Marcoi Pirotta',
+ 'Marco Rossi',
+ 'Marc Paré',
+ 'Marcus Moeller',
+ 'Marek Walter',
+ 'Margot Lawrence',
+ 'Marita Klen-Launonen (tumbeliina)',
+ 'Marita Launonen',
+ 'Marja van Waes',
+ 'Markus Schimpf (arno911)',
+ 'Markus Vollmer',
+ 'Martin Alduncin Garrido',
+ 'Martin Turner',
+ 'Marvin Jankes',
+ 'Marzio Messora',
+ 'Mat Thorpe',
+ 'Michael Golden',
+ 'Michael Görrissen',
+ 'Michael Lossin',
+ 'Michael Smith',
+ 'Michael Waggoner',
+ 'Michel Antoine (ptit-pol88)',
+ 'Michel de Mendez',
+ 'Michèle Lallement',
+ 'Michele Trotta',
+ 'Michel Renaud',
+ 'Mikael Hilger',
+ 'Mike Arnautov',
+ 'Mike Burgener',
+ 'Mike Crecelius',
+ 'M.J Thate Eo',
+ 'Mme Noot & Nee Huyghe',
+ 'Mona Zehle',
+ 'Morgan Leijström (Tribun AB)',
+ 'Mriganka Talukdar',
+ 'Murat Demir',
+ 'Nenad Latinović',
+ 'Nico Bergmann',
+ 'Nicolas Gandriau',
+ 'Nicos Stawrakakis',
+ 'Olaf Schnepel',
+ 'Olivier Le Roy',
+ 'Olivier Mejean (Goom)',
+ 'Olivier Mergnac',
+ 'Ondrej Hrstka',
+ 'Oswald und Adolfine Krop',
+ 'Ota Akira',
+ 'Otto Fischer',
+ 'Pascal Vilarem (Maât)',
+ 'Patrice Riant',
+ 'Patrick Charpentier',
+ 'Patrick Le Tiec',
+ 'Patrick Vossen',
+ 'Paul Dupouy',
+ 'Paul-Eric Despretz',
+ 'Paul Patrick Honkakari',
+ 'Pawel Susicki',
+ 'Peter Mains',
+ 'Peter Trussel',
+ 'Peter Wiberg',
+ 'Philgren Jan-Gunnar',
+ 'Philippe Cherpentier',
+ 'Philippe Jusseaume',
+ 'Philippe Pieyre',
+ 'Philippe Pieyre (pepy)',
+ 'Philippe Poilbarbe',
+ 'Philippe Seraphin',
+ 'Piermario Rodella',
+ 'Pierre Bonneau',
+ 'Pierre Gabet',
+ 'Pierre Opter',
+ 'Pierre-Yves Dirand',
+ 'Pietr Petronov',
+ 'Placais',
+ 'Rafal Artur Prasal',
+ 'Raphael Vinet',
+ 'Rémi Chateauneu',
+ 'Rémi Verschelde (Akien)',
+ 'Rémy Clouard (shikamaru)',
+ 'Renaud Le Gac',
+ 'Renaud Michel',
+ 'René Fischer',
+ 'Rene Hytting',
+ 'Richard Chonak',
+ 'Richard Crosby',
+ 'Richard Monnier',
+ 'Richard Neill',
+ 'Robert J Greenwood',
+ 'Robert Riches',
+ 'Robert Shellard',
+ 'Rodney Blosser',
+ 'Rogelio Jose Trujillo Moreno',
+ 'Roger Mattson',
+ 'Roland Gillard',
+ 'Ronan Viel',
+ 'Sahaghian',
+ 'Samuel Iglesias Gonsalvez',
+ 'Samuel Verschelde (Stormi)',
+ 'Sandro Veronese',
+ 'Sascha Herholz',
+ 'Schouwen R M Van',
+ 'Sébastien Guerin',
+ 'Sébastien Gustin',
+ 'Sébastien Pinet',
+ 'Serge Moreau',
+ 'Shlomi Fish',
+ 'Sreejiraj Eluvangal',
+ 'Staale Ness',
+ 'Stefan John',
+ 'Stéphane Couturier',
+ 'Stephen Adrian',
+ 'Steven Hess',
+ 'Steven Shupe',
+ 'Surik Sayadyan',
+ 'Svein Hauge',
+ 'Sylvain Goumas',
+ 'Sylvain Haye',
+ 'Sylvain Leterreur',
+ 'Teofilo Casares De La Iglesia',
+ 'Thibaut François',
+ 'Thierry Chamouton',
+ 'Thomas Faber',
+ 'Thomas Fackler (tomm.fa)',
+ 'Thomas Lottmann',
+ 'Tino Gohl',
+ 'Tobias Müller',
+ 'Tomas Kindl',
+ 'Tomeu Ferrer Redondo',
+ 'Tomislav Jankovic',
+ 'Tom Van Dyck',
+ 'Tristan Campbell',
+ 'Tuan Nguyen',
+ 'Udo Zeppich',
+ 'Urs Menet',
+ 'Valentin Moon',
+ 'Valgo Urtone',
+ 'Vallin Estes',
+ 'Vasileios Karampelas',
+ 'Vernon Grimes III',
+ 'Vicente Salvador Cubedo',
+ 'Vilhjalmur Ingi Arnason',
+ 'Vincent Calame',
+ 'Vincent Ducastin',
+ 'Walter Müller',
+ 'Werner Brinkmann',
+ 'William Fischer',
+ 'William Shields',
+ 'Wolfgang Bornath (wobo)',
+ 'Wulf Wilhelm',
+ 'Xavier Allain',
+ 'Yannick Le Ny',
+ 'Yaroslav Malushin',
+ 'Александр Найдёнов',
+ 'Ермолаев Василий',
+ 'Николай Путроенок (nick7rus)',
+ '姜 奕轲',
+];
+
+var donators = {};
+for (var i = 0; i < previous_donors.length; i++) {
+ donators[previous_donors[i]] = previous_donors_url;
+}
+
+$.getJSON(donations_who_url, function(data) {
+ for (var i = 0; i < data.length; i++) {
+ donators[data[i].who] = data[i].url;
+ }
+ var sorted_donators = [];
+ for (var d in donators) {
+ if (donators.hasOwnProperty(d))
+ sorted_donators.push(d);
+ }
+ sorted_donators.sort();
+
+ var dlist = '';
+ for (var i = 0; i < sorted_donators.length; i++) {
+ dlist += '<li><a href="' + donators[sorted_donators[i]] + '">'
+ + sorted_donators[i] + '</a></li>';
+ };
+ document.getElementById("donlist").innerHTML=dlist;
+});
+
+$.getJSON(treasurer_infos_url, function(data) {
+ document.getElementById("last_update").innerHTML=data.last_update;
+});