{% load staticfiles %}
<header class="site-header">
    <div class="wrapper">
        <div class="site-title">
            <img src="{% static "logo.svg" %}" class="site-icon"/>
            <a href="{{ site.baseurl }}/" class="site-title-text">{{ site.title }}</a>
        </div>
        <div class="site-login">
            {% if user.is_authenticated %}
                <form action="/logout/" method="POST">
                    {% csrf_token %}
                    <input type="hidden" value="{{ request.path }}" name="next">
                    <input type="submit" value="Log out">
                </form>
            {% else %}
                <a href="/create_account">Create account</a>
                <a href="/login?fromlink=true&next={{ request.path }}">Log in</a>
            {% endif %}
        </div>
        <nav class="site-nav {% if editing_topic %}editing-topic{% endif %}">
            <ul>
                {% for topic in topics.0 %}
                    {% if topic.name %}
                        <li class="{% if topic.name|lower in nav_active %} active{% endif %}">
                            <a class="page-link" href="/topics/{{ topic.name|lower }}/">{{ topic.name | title }}</a>
                        </li>
                    {% endif %}
                {% endfor %}
                {% include 'includes/new_topic_button.html' %}
            </ul>
        </nav>
    </div>
</header>

{% load staticfiles %}
<header class="site-header">
    <div class="wrapper">
        <div class="site-title">
            <img src="{% static "logo.svg" %}" class="site-icon"/>
            <a href="{{ site.baseurl }}/" class="site-title-text">{{ site.title }}</a>
        </div>
        <div class="site-login">
            {% if user.is_authenticated %}
                <form action="/logout/" method="POST">
                    {% csrf_token %}
                    {% if user.is_staff %}
                        <a href="/admin">Admin</a>
                    {% endif %}
                    <input type="hidden" value="{{ request.path }}" name="next">
                    <input type="submit" value="Log out">
                </form>
            {% else %}
                <a href="/create_account">Create account</a>
                <a href="/login?fromlink=true&next={{ request.path }}">Log in</a>
            {% endif %}
        </div>
        <nav class="site-nav {% if editing_topic %}editing-topic{% endif %}">
            <ul>
                {% for topic in topics.0 %}
                    {% if topic.name %}
                        <li class="{% if topic.name|lower in nav_active %} active{% endif %}">
                            <a class="page-link" href="/topics/{{ topic.name|lower }}/">{{ topic.name | title }}</a>
                        </li>
                    {% endif %}
                {% endfor %}
                {% include 'includes/new_topic_button.html' %}
            </ul>
        </nav>
    </div>
</header>

Add link to admin if user is staff
Add link to admin if user is staff
