From b09c7d3d2b23dd176e9285946e658e569ca061d5 Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Wed, 8 Nov 2017 02:55:25 -0800 Subject: [PATCH] Templatev2 (#286) * Fix for build break * Revert "v2 of templates" * New commit, old changes --- _layouts/docs.html | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/_layouts/docs.html b/_layouts/docs.html index ca3a1ad5e4..dc7f030947 100644 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -133,19 +133,20 @@

{{ page.title }}

{% endif %} {% if page.advisory %}
{{ site.data.advisories.texts[page.advisory] | markdownify }}
{% endif %}{% endif %} {% unless page.tree == false %}{% include read_time.html %}{% endunless %} {% if page.enterprise %}{% include ee_dropdown.html %}{% endif %} - {% if page.ui_tabs or page.cli_tabs %} - {{ page.description | markdownify }} - - {% if page.ui_tabs %} - -

{{ page.title }} in the UI

- -
+ {% if page.ui_tabs or page.cli_tabs or page.api_tabs %}{% capture content %} + {% capture enterprise_advisory %}

These instructions require Docker Enterprise

The UI instructions shown here are for the dashboard provided with Docker Enterprise Standard - or higher.

-
+ or higher.

{% endcapture %} + {% if page.whole_page_ee %}{{ enterprise_advisory }}{% endif %} + {% if page.intro %}{{ page.intro | markdownify }}{% else %}{{ page.description | markdownify }}{% endif %} + + {% if page.ui_tabs %} + +

In the UI

+ + {% unless page.whole_page_ee %}{{ enterprise_advisory %}}{% endunless %}