diff --git a/caravel/templates/caravel/explore.html b/caravel/templates/caravel/explore.html index 52da875b4eb09..ec1010c45b10d 100644 --- a/caravel/templates/caravel/explore.html +++ b/caravel/templates/caravel/explore.html @@ -188,36 +188,7 @@
- {% if slice %} - {% if slice.slice_name %} -

- {{ slice.slice_name }} - - - - - {% if slice.description %} - - - {% endif %} - - - - -

- {% else %} -

untitled

- {% endif %} - {% endif %} + {% include 'caravel/partials/_explore_title.html' %}
diff --git a/caravel/templates/caravel/partials/_explore_title.html b/caravel/templates/caravel/partials/_explore_title.html new file mode 100644 index 0000000000000..9f9767ce47e4c --- /dev/null +++ b/caravel/templates/caravel/partials/_explore_title.html @@ -0,0 +1,30 @@ +{% if slice %} + {% if slice.slice_name %} +

+ {{ slice.slice_name }} + + + + + {% if slice.description %} + + + {% endif %} + + + + +

+ {% endif %} +{% else %} +

[{{ viz.datasource.table_name }}] - untitled

+{% endif %}