diff --git a/templates/dataset_code.tmpl b/templates/dataset_code.tmpl deleted file mode 100644 index 9eb4ec545bd..00000000000 --- a/templates/dataset_code.tmpl +++ /dev/null @@ -1,156 +0,0 @@ -## -## 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 diff --git a/templates/dataset_state.tmpl b/templates/dataset_state.tmpl deleted file mode 100644 index a6baf439a07..00000000000 --- a/templates/dataset_state.tmpl +++ /dev/null @@ -1 +0,0 @@ -$data.state diff --git a/templates/history.tmpl b/templates/history.tmpl deleted file mode 100644 index 4d6f4e296f4..00000000000 --- a/templates/history.tmpl +++ /dev/null @@ -1,418 +0,0 @@ - - - - - -Galaxy History - -## This is now only necessary for tests -#set $running = bool ( [ data for data in $history.active_datasets if data.state in ['running', 'queued', '', None ] ] ) -#if $running - -#end if - - - - - - - -## - - - - - - - - - - - - - - - - - - - - - -#if $history.deleted -
- You are currently viewing a deleted history! -
-

-#end if - -## -## Render the dataset `$data`, using `$hid` as the displayed id -## - -## FIXME: This function is duplicated in dataset_code.tmpl! -## This copy is used for rendering datasets when the client's javascript -## is NOT 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 -
- - ## - ## Header row for history items (name, state, action buttons) - ## - - - - - - -
- - #if $data_state == 'running' -
- #elif $data_state == 'ok' - #pass - #else - #set $src = $h.url_for( "/static/style/data_%s.png" % $data_state ) -
- #end if -
-
-
display data - edit attributes - delete - -
- $hid: $data.display_name -
-
- - ## - ## Body for history items, extra info and actions, data "peek" - ## - -
- #if $data_state == "queued" -
Job is waiting to run
- #elif $data_state == "running" -
Job is currently running
- #elif $data_state == "error" -
- An error occurred running this job: $data.display_info.strip(), - report this error -
- #elif $data_state == "empty" -
No data: $data.display_info
- #else -
- $data.blurb, - format: $data.ext, - database: - #if $data.dbkey == '?' - $data.dbkey - #else - $data.dbkey - #end if -
-
Info: $data.display_info
-
- #if $data.has_data: - save - #for $display_app in $data.datatype.get_display_types(): - #set $display_links = $data.datatype.get_display_links($data, $display_app, $app, $request.base) - #if $len($display_links) > 0: - | $data.datatype.get_display_label($display_app) - #for $display_name, $display_link in display_links: - $display_name - #end for - #end if - #end for - #end if -
- #if $data.peek != "no peek" -
$data.display_peek
- #end if - #end if - - ## - ## Child datasets - ## - - #if $len( $data.children ) > 0: - #set $children = [] - #for $child_assoc in $data.children: - #if $child_assoc.child.visible: - $children.append($child_assoc.child) - #end if - #end for - #if $len( $children ) > 0: -
- There are ${len( $children )} secondary datasets. - #for $idx, $child in $enumerate($children) - $render_dataset( $child, $idx + 1 ) - #end for -
- #end if - #end if - -
-
- -#end def - -#if $len($history.active_datasets)<1 -
-#else - ## Render all active (not deleted) datasets, ordered from newest to oldest - #for $data in reversed( $history.active_datasets ) - #if $data.visible: -
- $render_dataset( $data, $data.hid ) -
- #end if - #end for - - - - - -#if $app.config.get( "show_panel_footers", "true" ) == "true" -
- -#end if - -