diff --git a/primed/templates/cdsa/cdsaworkspace_detail.html b/primed/templates/cdsa/cdsaworkspace_detail.html index f2dba7ca..046c6277 100644 --- a/primed/templates/cdsa/cdsaworkspace_detail.html +++ b/primed/templates/cdsa/cdsaworkspace_detail.html @@ -81,24 +81,7 @@

-
-
-
-

- -

-
-
- {% render_table associated_data_prep_workspaces %} -
-
-
-
-
+{% include "snippets/data_prep_workspace_table.html" with table=associated_data_prep_workspaces %} {{block.super}} {% endblock after_panel %} diff --git a/primed/templates/dbgap/dbgapworkspace_detail.html b/primed/templates/dbgap/dbgapworkspace_detail.html index c183c7e0..f5c02a2b 100644 --- a/primed/templates/dbgap/dbgapworkspace_detail.html +++ b/primed/templates/dbgap/dbgapworkspace_detail.html @@ -1,5 +1,5 @@ {% extends "anvil_consortium_manager/workspace_detail.html" %} -{% load render_table from django_tables2 %} +{% load render_table from django_tables2%} {% block pills %} {% if workspace_data_object.gsr_restricted %} @@ -94,24 +94,7 @@

-
-
-
-

- -

-
-
- {% render_table associated_data_prep_workspaces %} -
-
-
-
-
+{% include "snippets/data_prep_workspace_table.html" with table=associated_data_prep_workspaces %} {{block.super}} {% endblock after_panel %} diff --git a/primed/templates/snippets/data_prep_workspace_table.html b/primed/templates/snippets/data_prep_workspace_table.html new file mode 100644 index 00000000..8fb638d9 --- /dev/null +++ b/primed/templates/snippets/data_prep_workspace_table.html @@ -0,0 +1,20 @@ +{% load render_table from django_tables2 %} + +
+
+
+

+ +

+
+
+ {% render_table table %} +
+
+
+
+