Advertisement
horozov86

base.html with button in up left corner

Mar 5th, 2024
636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.27 KB | None | 0 0
  1. <!-- Your template file -->
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5.     <meta charset="UTF-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <link rel="stylesheet" href="{% static '/style/style.css' %}">
  8.     <title>WorldOfSpeed</title>
  9. </head>
  10. <body>
  11. <div id="box">
  12.     <header>
  13.         <!-- Navigation Bar -->
  14.         <div class="navbar">
  15.             <h1>
  16.                 <a class="index-navigation" href="{% url 'index' %}"><span>World of Speed</span></a>
  17.             </h1>
  18.             <nav>
  19.                 {% if has_profile %}
  20.                     <a href="{% url 'catalogue_view' %}">Catalogue</a>
  21.                     <a href="{% url 'create_car' %}">Create Car</a>
  22.                     <a href="{% url 'details_profile' %}">Profile</a>
  23.                     <!-- Add Logout link -->
  24.                     <a href="{% url 'logout' %}">Logout</a>
  25.                 {% else %}
  26.                     <!-- Display link for users without profiles -->
  27.                     <a href="{% url 'create_profile' %}">Create Profile</a>
  28.                 {% endif %}
  29.             </nav>
  30.         </div>
  31.     </header>
  32.     {% block main_content %}
  33.     {% endblock %}
  34.     <footer>&copy;SoftUni Team 2024. All rights reserved.</footer>
  35. </div>
  36. </body>
  37. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement