Skip to content

Commit

Permalink
refresh page on a 7 second interval (GeoNode#133)
Browse files Browse the repository at this point in the history
* refresh page on a 7 second interval

* Add spinner for UI feedback.
  • Loading branch information
davisc authored and bitner committed Jan 25, 2018
1 parent b23957e commit 8c7d493
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions geonode/services/templates/services/service_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ <h3>{% trans "Service Resources" %} <span class="badge">{{ total_resources }}</s
<th>Description</th>
</thead>
{% for job in resource_jobs %}
{% if forloop.first %}
<script>
setTimeout(function(){
window.location.reload(true);
}, 7000);
</script>
{% endif %}
<tr>
<td>{{job.resource_id}}</td>
<td>
Expand All @@ -71,6 +78,12 @@ <h3>{% trans "Service Resources" %} <span class="badge">{{ total_resources }}</s
<div class="btn-group pull-right">
<button title="Retry job" class="btn" name="retry-{{ job.resource_id }}"><i class="fa fa-refresh fa-fw" aria-hidden="true"></i></button>
</div>
{% else %}
<div class="btn-group pull-right">
<div class="btn">
<i class="fa fa-spinner fa-spin"></i>
</div>
</div>
{% endif %}
</div>
</td>
Expand Down

0 comments on commit 8c7d493

Please sign in to comment.