{% extends 'base.html' %}
{% block pagecontent %}
objects |
{{ header['nobjects'] }} |
created on |
{{ header['created'] }} |
last updated |
{{ header['updated'] }} |
dataset is public |
{{ header['public'] }} |
search query parameters |
{{ header['searchtype'].replace('sqlite_','').replace('postgres_','') }}{{ header['searchargs'] }}
|
collections searched |
{{ ', '.join(header['collections']) }} |
dataset pickle |
{% if setpickle is not None %}
download file |
{% else %}
not available yet... |
{% end %}
dataset table CSV |
{% if setcsv is not None %}
download file |
{% else %}
not available yet... |
{% end %}
light curves ZIP |
{% if lczip is not None %}
download file |
{% else %}
not available yet... |
{% end %}
column key |
title |
description |
numpy dtype |
{% end %}
{% block pagejs_modules %}
{% end %}
{% block pagejs %}
$(document).ready(function() {
// UI action setup
lcc_ui.action_setup();
// format all the moments
$('.moment-format').each(function (index, elem) {
// get the text we need
var mt = moment($(this).text()).fromNow();
$(this).html($(this).text() + ' (' + mt + ')');
});
// start the dataset check every 15 seconds and load if available
lcc_datasets.get_dataset('{{ setid }}', 15.0);
// on window resize, make sure to stick the table to the bottom again
$(window).on('resize', function (evt) {
// calculate the offset
var datacontainer_offset = $('.datatable-container').offset().top;
$('.datatable-container').height($(window).height() -
datacontainer_offset - 5);
// make the table div bottom stick to the bottom of the container
// so we can have a scrollbar at the bottom
$('.dataset-table')
.height($('.datatable-container').height());
});
// also listen on any collapse events so we can set the height
// correctly
$('.accordion').on('shown.bs.collapse hidden.bs.collapse', function (evt) {
// calculate the offset
var datacontainer_offset = $('.datatable-container').offset().top;
$('.datatable-container').height($(window).height() -
datacontainer_offset - 5);
// make the table div bottom stick to the bottom of the container
// so we can have a scrollbar at the bottom
$('.dataset-table')
.height($('.datatable-container').height());
});
});
{% end %}