# HG changeset patch # User cavaliet # Date 1384780569 -3600 # Node ID 577421d64334e8c819d34ac1f0744e0a76699a84 # Parent 1b4e4e935b240889e930a3a645ef696f112e013a timeline start year : debug 0018159 diff -r 1b4e4e935b24 -r 577421d64334 src/jocondelab/static/jocondelab/js/front-timeline.js --- a/src/jocondelab/static/jocondelab/js/front-timeline.js Fri Nov 15 14:40:38 2013 +0100 +++ b/src/jocondelab/static/jocondelab/js/front-timeline.js Mon Nov 18 14:16:09 2013 +0100 @@ -1,6 +1,6 @@ $(function() { - var startYear = -21000, + var startYear = -20000, endYear = 2012, gamma = 2, zoomLevel = 4, @@ -232,7 +232,7 @@ ctx.moveTo(x, cHeight*3/14); ctx.lineTo(x, cHeight - cHeight/14); ctx.stroke(); - if (isPrimary) { + if (isPrimary && (y!=startYear)) { ctx.fillText(y || 1, x, cHeight - 4); ctx.fillText(y || 1, x, cHeight*4/21); } diff -r 1b4e4e935b24 -r 577421d64334 src/jocondelab/templates/jocondelab/front_timeline.html --- a/src/jocondelab/templates/jocondelab/front_timeline.html Fri Nov 15 14:40:38 2013 +0100 +++ b/src/jocondelab/templates/jocondelab/front_timeline.html Mon Nov 18 14:16:09 2013 +0100 @@ -17,7 +17,7 @@ {% block css_declaration %} {{block.super}} - + {% endblock %} {% block title %}JocondeLab » {% trans 'Chronologie' %}{% endblock %}