Compare commits
No commits in common. "1e5aecbd0b191d2ab7d9204940e65583d5bc4a28" and "3eed3e280d1456ddb55b766174a9f507e8b0d7f6" have entirely different histories.
1e5aecbd0b
...
3eed3e280d
|
|
@ -8,7 +8,6 @@
|
|||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark" style="background-color: #000;">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="/">
|
||||
<img src="/media/logo.jpg" alt="BH Logo" height="40"> Beyond Heroes
|
||||
</a>
|
||||
|
|
@ -32,16 +31,13 @@
|
|||
{% if user.is_authenticated %}
|
||||
<li class="nav-item">
|
||||
{% if user.is_staff %}
|
||||
<form action="{% url 'BlogCreate' %}" method="get">
|
||||
{% csrf_token %}
|
||||
<button class="nav-link btn btn-link" type="submit">Post</button>
|
||||
</form>
|
||||
<a class="nav-link" href="{% url 'BlogCreate' %}">Post</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<form action="{% url 'Logout' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<button class="nav-link btn btn-link" type="submit">Logout</button>
|
||||
{% csrf_token %}
|
||||
<button class="nav-link btn btn-link" type="submit">Logout</button>
|
||||
</form>
|
||||
</li>
|
||||
{% else %}
|
||||
|
|
@ -54,7 +50,6 @@
|
|||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{% block content %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue