Avoid singular form of 'minutes' word

This commit is contained in:
nemunaire 2016-02-28 06:06:30 +01:00 committed by Pierre-Olivier Mercier
parent ee67788d59
commit aefd078ebf

View file

@ -17,7 +17,7 @@ angular.module("FICApp")
})
.filter("since", function() {
return function(passed) {
if (passed < 60000) {
if (passed < 120000) {
return "Il y a " + Math.floor(passed/1000) + " secondes";
} else {
return "Il y a " + Math.floor(passed/60000) + " minutes";