{% extends "tesm_core/base.html" %}
{% block page_title %}{{ switch.hostname }}{% endblock %}
{% block page_sub %}{{ command }}{% endblock %}
{% block breadcrumb %}
<nav class="breadcrumb">
  <span><a href="{{ url_for('switches.overview') }}">Switche</a></span>
  <span><a href="{{ url_for('switches.detail', switch_id=switch.id) }}">{{ switch.hostname }}</a></span>
  <span>Kommando</span>
</nav>
{% endblock %}
{% block content %}
<section class="card">
  <div class="card__header">
    <div class="flex-1"><div class="card__title">{{ icon('terminal', size=17) }} Ausgabe</div>
      <div class="card__sub mono">{{ command }}</div></div>
    <button class="btn btn--sm" type="button" data-copy="#cmd-output">{{ icon('copy', size=14) }} Kopieren</button>
  </div>
  <pre class="log-view" id="cmd-output">{{ output }}</pre>
</section>
<div class="row row--end">
  <a class="btn" href="{{ url_for('switches.detail', switch_id=switch.id) }}">Zurueck</a>
</div>
{% endblock %}
