Templatev2 (#286)

* Fix for build break

* Revert "v2 of templates"

* New commit, old changes
This commit is contained in:
John Mulhausen 2017-11-08 02:55:25 -08:00 committed by Jim Galasyn
parent c3cbbaabcb
commit b09c7d3d2b
1 changed files with 26 additions and 13 deletions

View File

@ -133,19 +133,20 @@
<h1>{{ page.title }}</h1>{% endif %} {% if page.advisory %}
<blockquote>{{ site.data.advisories.texts[page.advisory] | markdownify }}</blockquote>{% 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 %}
<h2>{{ page.title }} in the UI</h2>
<blockquote>
{% if page.ui_tabs or page.cli_tabs or page.api_tabs %}{% capture content %}
{% capture enterprise_advisory %}<blockquote>
<p>These instructions require Docker Enterprise</p>
<p>The UI instructions shown here are for the dashboard provided with
<a href="/enterprise/#docker-ee-feature-tiers">Docker Enterprise Standard</a>
or higher.</p>
</blockquote>
or higher.</p></blockquote>{% endcapture %}
{% if page.whole_page_ee %}{{ enterprise_advisory }}{% endif %}
{% if page.intro %}{{ page.intro | markdownify }}{% else %}{{ page.description | markdownify }}{% endif %}
{% if page.ui_tabs %}
<h2>In the UI</h2>
{% unless page.whole_page_ee %}{{ enterprise_advisory %}}{% endunless %}
<ul class="nav nav-tabs">{% for tab in page.ui_tabs %}
<li{% if forloop.first %} class="active"{% endif %}><a data-toggle="tab" data-target="#ui-{{ tab.version | slugify }}" id="ui-tabheader-{{ tab.version | slugify }}">{{ site.tablabels[tab.version] }}{% if tab.orhigher %} (or higher){% endif %}{% if tab.orlower %} (or lower){% endif %}</a></li>{% endfor %}
@ -157,7 +158,7 @@
{% endif %}
{% if page.cli_tabs %}
<h2>{{ page.title }} in the CLI</h2>
<h2>In the CLI</h2>
<ul class="nav nav-tabs">{% for tab in page.cli_tabs %}
<li{% if forloop.first %} class="active"{% endif %}><a data-toggle="tab" data-target="#cli-{{ tab.version | slugify }}" id="cli-tabheader-{{ tab.version | slugify }}">{{ site.tablabels[tab.version] }}</a></li>{% endfor %}
@ -166,6 +167,18 @@
<div id="cli-{{ tab.version | slugify }}" class="tab-pane fade{% if forloop.first %} in active{% endif %}">{% capture thistab %}{% include_relative {{ page.path | split: "/" | last }} version=tab.version cli="true" %}{% endcapture %}{{ thistab | split: "---" | last | markdownify }}</div>{% endfor %}
</div>
{% endif %}
{% if page.api_tabs %}
<h2>In the API</h2>
<ul class="nav nav-tabs">{% for tab in page.api_tabs %}
<li{% if forloop.first %} class="active"{% endif %}><a data-toggle="tab" data-target="#api-{{ tab.version | slugify }}" id="api-tabheader-{{ tab.version | slugify }}">{{ site.tablabels[tab.version] }}</a></li>{% endfor %}
</ul>
<div class="tab-content">{% for tab in page.api_tabs %}
<div id="api-{{ tab.version | slugify }}" class="tab-pane fade{% if forloop.first %} in active{% endif %}">{% capture thistab %}{% include_relative {{ page.path | split: "/" | last }} version=tab.version api="true" %}{% endcapture %}{{ thistab | split: "---" | last | markdownify }}</div>{% endfor %}
</div>
{% endif %}
{% if page.next_steps %}
@ -177,9 +190,9 @@
{% endfor %}
</ul>
{% endif %}
{% else %}
{{ content }}
{% endcapture %}
{% endif %}
{{ content }}
<!-- tags -->
{% unless page.notags == true %}
{% assign keywords = page.keywords | split:"," %}