{% extends "base.html" %}

{% block content %}
<div class="admin-container">
  <nav class="admin-nav">
    <a href="{{ url_for('admin.dashboard') }}">Dashboard</a>
    <a href="{{ url_for('admin.new_note_form') }}">New Note</a>
    <a href="{{ url_for('admin.metrics_dashboard') }}">Metrics</a>
    <form action="{{ url_for('auth.logout') }}" method="POST" class="logout-form">
      <button type="submit" class="button button-secondary">Logout</button>
    </form>
  </nav>

  <div class="admin-content">
    {% if user_me %}
    <p class="user-identity">Logged in as: <strong>{{ user_me }}</strong></p>
    {% endif %}

    {% block admin_content %}{% endblock %}
  </div>
</div>
{% endblock %}
