Compare commits

..

2 Commits

Author SHA1 Message Date
surya 1e5aecbd0b Merge branch 'master' of https://giteabh.srv-bw.beyond-heroes.com/Surya/Website 2024-07-25 01:59:31 +05:30
surya 72696e3302 Update base.html 2024-07-25 01:59:25 +05:30
1 changed files with 8 additions and 3 deletions

View File

@ -8,6 +8,7 @@
</head> </head>
<body> <body>
<nav class="navbar navbar-expand-lg navbar-dark" style="background-color: #000;"> <nav class="navbar navbar-expand-lg navbar-dark" style="background-color: #000;">
<div class="container">
<a class="navbar-brand" href="/"> <a class="navbar-brand" href="/">
<img src="/media/logo.jpg" alt="BH Logo" height="40"> Beyond Heroes <img src="/media/logo.jpg" alt="BH Logo" height="40"> Beyond Heroes
</a> </a>
@ -31,13 +32,16 @@
{% if user.is_authenticated %} {% if user.is_authenticated %}
<li class="nav-item"> <li class="nav-item">
{% if user.is_staff %} {% if user.is_staff %}
<a class="nav-link" href="{% url 'BlogCreate' %}">Post</a> <form action="{% url 'BlogCreate' %}" method="get">
{% csrf_token %}
<button class="nav-link btn btn-link" type="submit">Post</button>
</form>
{% endif %} {% endif %}
</li> </li>
<li class="nav-item"> <li class="nav-item">
<form action="{% url 'Logout' %}" method="post"> <form action="{% url 'Logout' %}" method="post">
{% csrf_token %} {% csrf_token %}
<button class="nav-link btn btn-link" type="submit">Logout</button> <button class="nav-link btn btn-link" type="submit">Logout</button>
</form> </form>
</li> </li>
{% else %} {% else %}
@ -50,6 +54,7 @@
{% endif %} {% endif %}
</ul> </ul>
</div> </div>
</div>
</nav> </nav>
{% block content %} {% block content %}