<div class="plugin-docs">
  <header class="plugin-docs-head">
    <h2>{plugin.name}</h2>
    <p class="muted">
      [if {plugin.version}]<span class="plugin-docs-meta">v{plugin.version}</span>[/if]
      [if {plugin.author}]<span class="plugin-docs-meta">{plugin.author}</span>[/if]
      <span class="plugin-docs-meta"><code>{plugin.slug}</code></span>
    </p>
  </header>

  [if {sections}]
    <nav class="plugin-docs-tabs">
      [foreach var="sections" as="s"]
        <a href="#" class="plugin-docs-tab [if {active.file}={s.file}]is-active[/if]"
           data-docs-open
           data-docs-url="/admin/docs/plugin-panel?slug={plugin.slug}&doc={s.file}"
           data-docs-title="{plugin.name}">{s.title}</a>
      [/foreach]
    </nav>
  [/if]

  <article class="plugin-docs-body markdown-body">
    {body|raw}
  </article>
</div>
