diff --git a/web/view/home.html.jinja2 b/web/view/home.html.jinja2
index a30d466..eeeea58 100755
--- a/web/view/home.html.jinja2
+++ b/web/view/home.html.jinja2
@@ -261,36 +261,37 @@ var sw_configuration = {
img: '{{ static('img/sun_128.png') }}'
},
targets: {
-{% for target in targets %}
- '{{ target.slug }}': {
- slug: "{{ target.slug | escapejs }}",
- name: "{{ target.name | escapejs }}",
- active: {{ 'true' if target.default else 'false' }},
- orbit: { a: {{ target.orbit.semimajor or 0 }}, b: {{ target.orbit.semiminor or 0 }} },
- img: '{{ static('img/target/'~target.slug~'_128.png') }}',
- layers: {
-{% for catalog_slug, catalog_intervals in target.catalog_layers.items() %}
- "{{ catalog_slug }}": [
-{% for interval in catalog_intervals %}
-{# { start: "2018-03-28T00:00:00Z", stop: "2018-03-29T00:00:00Z" }, #}
- {# /!. All datetimes here MUST be suffixed by Z #}
- { start: "{{ interval.start }}", stop: "{{ interval.stop }}" }{{ ',' if not loop.last }}
-{% endfor %}
- ]
-{% endfor %}
- }
- }{{ ',' if not loop.last }}
-{% endfor %}
+ {% for target in targets %}
+ '{{ target.slug }}': {
+ slug: "{{ target.slug | escapejs }}",
+ type: "{{ target.type | escapejs }}",
+ name: "{{ target.name | escapejs }}",
+ active: {{ 'true' if target.default else 'false' }},
+ orbit: { a: {{ target.orbit.semimajor or 0 }}, b: {{ target.orbit.semiminor or 0 }} },
+ img: '{{ static('img/target/'~target.slug~'_128.png') }}',
+ layers: {
+ {% for catalog_slug, catalog_intervals in target.catalog_layers.items() %}
+ "{{ catalog_slug }}": [
+ {% for interval in catalog_intervals %}
+ {# { start: "2018-03-28T00:00:00Z", stop: "2018-03-29T00:00:00Z" }, #}
+ {# /!. All datetimes here MUST be suffixed by Z #}
+ { start: "{{ interval.start }}", stop: "{{ interval.stop }}" }{{ ',' if not loop.last }}
+ {% endfor %}
+ ]
+ {% endfor %}
+ }
+ }{{ ',' if not loop.last }}
+ {% endfor %}
},
parameters: [
-{% for p in parameters %}
- {
- id: "{{ p.slug | escapejs }}",
- title: "{{ p.name | escapejs }} ({{ p.units | escapejs }})",
- active: {{ 'true' if p.active else 'false' }},
- unit: "{{ p.units | escapejs }}"
- }{{ ',' if not loop.last }}
-{% endfor %}
+ {% for p in parameters %}
+ {
+ id: "{{ p.slug | escapejs }}",
+ title: "{{ p.name | escapejs }} ({{ p.units | escapejs }})",
+ active: {{ 'true' if p.active else 'false' }},
+ unit: "{{ p.units | escapejs }}"
+ }{{ ',' if not loop.last }}
+ {% endfor %}
]
{# ,#}
{# layers: [#}
@@ -304,7 +305,7 @@ var sw_configuration = {
{# }{{ ',' if not loop.last }}#}
{#{% endfor %}#}
{# ]#}
-};
+}; // end of sw_configuration
var sw;
jQuery().ready(function($){
--
libgit2 0.21.2