## ## Render the dataset `$data`, using `$hid` as the displayed id ## ## separate so it's only called once #def render_script( $data ) #end def ## FIXME: This function is duplicated in history.tmpl! ## This copy is used for rendering datasets when the client's javascript ## is enabled. #def render_dataset( $data, $hid ) #if $data.state in ["no state","",None]: #set $data_state = "queued" #else #set $data_state = $data.state #end if #end def ## this is necessary because this dataset remains in history.active_datasets ## after deletion, until the history is reloaded ## FIXME: still necessary now that we don't re-pull finished datasets? test. #if $data.deleted is not True $render_dataset( $data, $hid ) $render_script( $data ) #end if