views/github.haml in nailed-0.0.7 vs views/github.haml in nailed-0.0.8

- old
+ new

@@ -26,10 +26,11 @@ new Morris.Line({ element: 'pull_trend', data: #{@pulltrend}, xkey: 'time', ykeys: ['open'], + yLabelFormat: function(y){return y != Math.round(y)?'':y;}, labels: ['Open'], resize: true, hideHover: true, smooth: false, continuousLine: true, @@ -49,15 +50,15 @@ var one_month = 2629743; var now = Math.round((new Date()).getTime() / 1000); var then = $(this).attr("creation_time"); var diff = now - then; if (diff < one_week) { - $(value).css("color","#212121").attr('title', 'last change < one week'); + $(value).css("color","#212121").attr('title', 'opened < one week ago'); } else if (diff < two_weeks) { - $(value).css("color","#E57373").attr('title', 'last change < two weeks'); + $(value).css("color","#E57373").attr('title', 'opened < two weeks ago'); } else if (diff < one_month) { - $(value).css("color","#C62828").attr('title', 'last change < one month'); + $(value).css("color","#C62828").attr('title', 'opened < one month ago'); } else { - $(value).css("color","#D50000").attr('title', 'last change > one month'); + $(value).css("color","#D50000").attr('title', 'opened > one month ago'); } }); });