trentpalmerdotorg/tp/templates/base_navbar.html

21 lines
1.1 KiB
HTML
Raw Normal View History

2021-02-24 20:13:54 -08:00
<div class="d-flex justify-content-center bg-dark">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="width: 950px; max-width: 95vw;">
<a class="navbar-brand" href="{% url 'audio:home' %}">Home</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-item nav-link" href="{% url 'audio:feeds' %}">Feeds</a>
{% if user.is_authenticated %}
<a class="nav-item nav-link" href="{% url 'accounts:logout' %}">Logout</a>
<a class="nav-item nav-link" href="{% url 'accounts:edit_profile' %}">Profile</a>
<a class="nav-item nav-link" href="{% url 'audio:new_feed' %}">NewFeed</a>
{% else %}
<a class="nav-item nav-link" href="{% url 'accounts:login' %}">Login</a>
{% endif %}
</div>
</div>
</nav>
</div>