{% extends "layout.html" %}
{% block content %}
	  <div class="page-header">
      <h1>Certificate Authority <small>view logs content</small></h1>
    </div>

		<div class="row">
		  <div class="col-md-12">
				<div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title">{{ filename }}</h3>
          </div>
          <div class="panel-body">
            <p>
              <a class="btn btn-default" href="/view_logs?full=true" role="button"  title="Download file">
                <i class="fa fa-file-text" aria-hidden="true"></i> Full log</a>
              <a class="btn btn-default" href="/view_logs" role="button"  title="Download file">
                <i class="fa fa-file-text" aria-hidden="true"></i> Tail log</a>
            </p>
            <pre style="max-height: 600px;">{{ content }}</pre>
          </div>
        </div>
			</div>
		</div>
{% endblock %}