diff --git a/planet/templates/go.html b/planet/templates/go.html index ce49392..b999268 100644 --- a/planet/templates/go.html +++ b/planet/templates/go.html @@ -2,6 +2,7 @@ {% block container %} {% import 'macros/sequence_pagination.html' as macro %} +{% import 'macros/cluster_actions.html' as ca %}
{% if go %} @@ -47,14 +48,7 @@

{{ go.label }}: {{ go.name }} ({{ go.type }}){{ cluster.cluster_percentage|round(2) }} % {{ cluster.p_value|round(6) }} {{ cluster.corrected_p_value|round(6) }} - - - - + {{ ca.cluster_actions(cluster.cluster.id) }} {% endif %} diff --git a/planet/templates/macros/cluster_actions.html b/planet/templates/macros/cluster_actions.html new file mode 100644 index 0000000..0a952f2 --- /dev/null +++ b/planet/templates/macros/cluster_actions.html @@ -0,0 +1,10 @@ +{% macro cluster_actions(cluster_id) -%} + + + + +{%- endmacro %} \ No newline at end of file diff --git a/planet/templates/search_enriched_clusters.html b/planet/templates/search_enriched_clusters.html index 81d8a84..0d39c83 100644 --- a/planet/templates/search_enriched_clusters.html +++ b/planet/templates/search_enriched_clusters.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% block container %} +{% import 'macros/cluster_actions.html' as ca %}
@@ -32,14 +33,7 @@

Search results

{{ c.p_value|round(5) }} {{ c.corrected_p_value|round(5) }} - - - - + {{ ca.cluster_actions(c.cluster_id) }} {% endfor %} diff --git a/planet/templates/sequence.html b/planet/templates/sequence.html index b66bde5..28930f7 100644 --- a/planet/templates/sequence.html +++ b/planet/templates/sequence.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% block container %} +{% import 'macros/cluster_actions.html' as ca %}
{% if sequence %} @@ -211,14 +212,7 @@

Sequence details

{{ cluster.name }} - - - - + {{ ca.cluster_actions(cluster.id) }} {% endfor %}