aboutsummaryrefslogtreecommitdiff
path: root/roadmap/templates/roadmap/roadmap.html
diff options
context:
space:
mode:
Diffstat (limited to 'roadmap/templates/roadmap/roadmap.html')
-rw-r--r--roadmap/templates/roadmap/roadmap.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/roadmap/templates/roadmap/roadmap.html b/roadmap/templates/roadmap/roadmap.html
index 9355503..1493652 100644
--- a/roadmap/templates/roadmap/roadmap.html
+++ b/roadmap/templates/roadmap/roadmap.html
@@ -51,7 +51,7 @@
options["showMajorLabels"] = false;
options["showMinorLabels"] = false;
{% endif %}
-
+
// Instantiate our timeline object.
vis{{ forloop.counter0 }} = new links.Timeline(document.getElementById('{{ epic.key }}'));
{% for card in epic.implementedby.all %}
@@ -73,11 +73,11 @@
{% endfor %}
google.visualization.events.addListener(vis{{ forloop.counter0 }}, 'rangechange', onrangechange{{ forloop.counter0 }});
google.visualization.events.addListener(vis{{ forloop.counter0 }}, 'ready', onready{{ forloop.counter0 }});
-
+
// Draw our timeline with the created data and options
vis{{ forloop.counter0 }}.draw(data, options);
}
-
+
function onrangechange{{ forloop.counter0 }}() {
var range = vis{{ forloop.counter0 }}.getVisibleChartRange();
{% for e in epics %}
@@ -124,7 +124,7 @@
"max": endDate,
"selectable": false
};
-
+
// Instantiate our timeline object.
vis{{ forloop.counter }} = new links.Timeline(document.getElementById('other-cards'));
{% for card in other_cards %}
@@ -132,7 +132,7 @@
data.push({
"start": new Date("{{ card.start_date|date:'c' }}"),
{% if card.event_type == 'ONGOING' %}
- "end": new Date(2015, 1, 1),
+ "end": endDate,
{% endif %}
"content": "<a class=\"confirm\" href=\"{{ card.url }}\">{{ card.summary }}</a>",
"editable": false,
@@ -142,11 +142,11 @@
{% endfor %}
google.visualization.events.addListener(vis{{ forloop.counter }}, 'rangechange', onrangechange{{ forloop.counter }});
google.visualization.events.addListener(vis{{ forloop.counter }}, 'ready', onready{{ forloop.counter }});
-
+
// Draw our timeline with the created data and options
vis{{ forloop.counter }}.draw(data, options);
}
-
+
function onrangechange{{ forloop.counter }}() {
var range = vis{{ forloop.counter }}.getVisibleChartRange();
{% for e in epics %}
@@ -175,7 +175,7 @@
{% endif %}
{% endif %}
{% endfor %} // endfor epic
-
+
function drawVisualization() {
{% for epic in epics %}
{% if epic.is_valid_swimlane %}
@@ -207,11 +207,11 @@
"animate": false,
"animateZoom": false,
"zoomMin": 33*2629740000, // 33* month in miliseconds
- "min": new Date(2011, 1, 1),
- "max": new Date(2015, 1, 1),
+ "min": startDate,
+ "max": endDate,
"selectable": false
};
-
+
// Instantiate our timeline object.
timeline = new links.Timeline(document.getElementById('other-cards'));
{% for card in other_cards %}
@@ -219,7 +219,7 @@
data.push({
"start": new Date("{{ card.start_date|date:'c' }}"),
{% if card.event_type == 'ONGOING' %}
- "end": new Date(2015, 1, 1),
+ "end": endDate,
{% endif %}
"content": "<a class=\"confirm\" ref=\"{{ card.url }}\">{{ card.summary }}</a>",
"editable": false,