Guest User

Untitled

a guest
Aug 2nd, 2025
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.35 KB | None | 0 0
  1. <!--Links to the navbar css file-->
  2. <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='navbar2.css') }}">
  3.  
  4. <!-- get the error message from wtf forms -->  
  5. {% from "_formhelpers.html" import render_field %}
  6. <header>
  7.     <div class="container"> <!-- better name?  How do I know to put and end the div container?-->
  8.         <h1 class="title"> somewebsite.com </h1>
  9.         <h3 class="seccondary-title"> <p> A website for doing stuff and other things </p>  </h3>
  10.         <nav>
  11.             <ul>
  12.                 <li>
  13.                     <a href="{{ url_for ('payment.donations') }}">Donations</a>
  14.                 </li>
  15.                 <li>
  16.                     <a href="{{ url_for ('main.home') }}">Home</a>
  17.                 </li>    
  18.                 <li>
  19.                     <a href="{{ url_for ('main.about') }}">About</a>
  20.                 </li>
  21.                 <!-- if the current user is logged in the code activates -->
  22.                 {% if current_user.is_authenticated %}
  23.                     <li>              
  24.                         <a href="{{ url_for ('auth.logoff') }}">Logoff</a>
  25.                     </li>
  26.                     <li>
  27.                         <a href="{{ url_for ('postinfo.new_post')}}">New Posts</a>
  28.                     </li>
  29.                     <li>
  30.                         <a href="{{ url_for ('main.profile', username = current_user.username) }}"> Profile </a>
  31.                     </li>
  32.                 <!-- if the current user is not logged in the code activates -->
  33.                 {% else %}
  34.                     <li>
  35.                         <a href="{{ url_for ('auth.login') }}">Login</a>
  36.                     </li>
  37.                     <li>
  38.                         <a href="{{ url_for ('auth.register') }}">Register</a>
  39.                     </li>
  40.                 {% endif %}
  41.                 <li>
  42.                     <!-- redirected to /search when I fill out the form -->
  43.                     <form class="searchform" method="POST" action="{{ url_for('main.search') }}">
  44.                         {{ searchform.csrf_token }}
  45.                         {{ searchform.search_input(placeholder='search') }}
  46.                         {{ searchform.submit() }}
  47.                     </form>
  48.                 </li>
  49.             </ul>
  50.         </nav>
  51.     </div><!-- end of the containern div  -->
  52. </header>
  53.  
  54.  
  55.  
  56.  
  57.  
Advertisement
Add Comment
Please, Sign In to add comment