diff --git a/README.md b/README.md index 12a4b6a..f791d3d 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,11 @@ todo list, watch list, ranking... ## Changelog +## 3.6.0 + +* In the todo and to watch screens: separate games with a position from the others. +* In the trading history: games are also separated by month, not only per year. + ## 3.5.0 * Platform is now visible in the history screen. diff --git a/V4_FEATURES.md b/V4_FEATURES.md index 9f887d2..a1efef9 100644 --- a/V4_FEATURES.md +++ b/V4_FEATURES.md @@ -3,6 +3,7 @@ * Front app is no longer included. * To watch serious and to watch background are merged. * True REST APIs: - * endpoint are reflecting resources and no longer screens ; + * endpoint are reflecting ressources and no longer screens ; * using HTTP verbs instead of different endpoints for each action. * Games are no longer duplicated (one entry per platform). We link them to the platforms instead. +* We can now see if a game is completed or entirely watched. Two new filters: "Finished" and "Not finished". diff --git a/static/js/app/tools.js b/static/js/app/tools.js index 64f07c4..d169859 100644 --- a/static/js/app/tools.js +++ b/static/js/app/tools.js @@ -10,6 +10,29 @@ define( // Used to filter content from JS injection filterContent: function(content) { return $('#extraP').text(content).html() + }, + + getMonthName: function(monthId) { + var correspondence = { + 1: "Janvier", + 2: "Février", + 3: "Mars", + 4: "Avril", + 5: "Mai", + 6: "Juin", + 7: "Juillet", + 8: "Août", + 9: "Septembre", + 10: "Octobre", + 11: "Novembre", + 12: "Décembre", + }; + + if (!(monthId in correspondence)) { + return "Mois inconnu"; + } + + return correspondence[monthId]; } }; } diff --git a/static/js/pages/games.js b/static/js/pages/games.js index 229a3b0..e231500 100644 --- a/static/js/pages/games.js +++ b/static/js/pages/games.js @@ -14,11 +14,34 @@ define( $('#contentTitle').html(this.getTitle(data, context)); var that = this; var content = this.getSubtitle(context); + var count = 0; + var flagged = 0; + var flagFilter = null; + + if (context == "to_do") { + flagFilter = "to_do_position"; + } else if(context == "to_watch_background" || context == "to_watch_serious") { + flagFilter = "to_watch_position"; + } + + + if (context === "to_do") { + content += "Avec priorité"; + } + content += ''; + content += "Sans priorité"; + content += '' + yearString + '
'; currentYear = gameYear; + currentMonth = 0; + } + } + + if (currentMonth === 0) { + currentMonth = gameMonth; + content += '
' + tools.getMonthName(currentMonth) + '
' + tools.getMonthName(currentMonth) + '