Geometry: {{tj.trajectory['geometry']}}
@@ -32,44 +33,48 @@
Trajectory
+
+
+ Class
+ Collection
+ Date
+ Geometry
+
+
+
+ {% for traj in tj.trajectory['trajectory'] %}
-
-
- Class
- Collection
- Date
- Geometry
-
- {% for tj in tj.trajectory['trajectory']%}
-
- {{tj['class']}}
- {{tj['collection']}}
- {{tj['date']}}
- {{tj['geometry']}}
+ {{ traj['class'] }}
+ {{ traj['collection'] }}
+ {{ traj['date'] }}
+ {{ traj['geometry'] }}
{% endfor %}
+
-
+
{% else %}
Trajectory
+
+
+ Class
+ Collection
+ Date
+
+
+
+ {% for traj in tj.trajectory %}
-
-
- Class
- Collection
- Date
-
- {% for tj in tj.trajectory%}
-
- {{tj['class']}}
- {{tj['collection']}}
- {{tj['date']}}
+ {{ traj['class'] }}
+ {{ traj['collection'] }}
+ {{ traj['date'] }}
{% endfor %}
+
-
+
{% endif %}
\ No newline at end of file
diff --git a/wlts/templates/trajectory.html b/wlts/templates/trajectory.html
index 2856d98..0555c2a 100644
--- a/wlts/templates/trajectory.html
+++ b/wlts/templates/trajectory.html
@@ -1,63 +1,53 @@
-
-{% for tj in trajectories['trajectories'] %}
-
Trajectory for Latitude {{tj['query']['latitude']}} Longitude {{tj['query']['longitude']}}
-
- {% include 'trajectory-item.html' %}
-
-{% endfor %}
-
-
\ No newline at end of file
+ .collapsible {
+ background-color: #eee;
+ color: #444;
+ cursor: pointer;
+ padding: 18px;
+ width: 100%;
+ border: none;
+ text-align: left;
+ outline: none;
+ font-size: 15px;
+ }
+
+ .active, .collapsible:hover {
+ background-color: #ccc;
+ }
+
+ .content {
+ padding: 0 18px;
+ display: none;
+ overflow: hidden;
+ background-color: #ffffff;
+ }
+
+ .collapsible:after {
+ content: '+'; /* Unicode character for "plus" sign (+) */
+ font-size: 18px;
+ color: black;
+ float: right;
+ margin-left: 5px;
+ }
+
+ .active:after {
+ content: "-"; /* Unicode character for "minus" sign (-) */
+ }
+
+
+ {% for tj in trajectories['trajectories'] %}
+
Trajectory for Latitude {{tj['query']['latitude']}} Longitude {{tj['query']['longitude']}}
+
+ {% include 'trajectory-item.html' %}
+
+ {% endfor %}
+
+
\ No newline at end of file
diff --git a/wlts/templates/wlts.html b/wlts/templates/wlts.html
index d10ad0f..59bae7b 100644
--- a/wlts/templates/wlts.html
+++ b/wlts/templates/wlts.html
@@ -3,8 +3,8 @@
URL: {{ url }}
Collections:
- {% for cl in collections -%}
+ {% for cl in collections %}
{{ cl }}
- {%- endfor %}
+ {% endfor %}
\ No newline at end of file