Advertisement
Guest User

Untitled

a guest
Jun 27th, 2025
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.03 KB | None | 0 0
  1. <!-- get the error message from wtf forms -->  
  2. {% from "_formhelpers.html" import render_field %}
  3. <header>
  4.     <!-- Placeholder text I changed to hide my original idea.  -->
  5.     <h1> somewebsite.com </h1>
  6.     <p class="subtitle"> A website that does a few things and other things </p>
  7.  
  8.     <nav>
  9.         <ul>
  10.             <!-- beginning of links -->
  11.             <li>
  12.                 <a href="{{ url_for ('payment.donations') }}">Donations</a>
  13.             </li>
  14.             <li>
  15.                 <a href="{{ url_for ('main.home') }}">Home</a>
  16.             </li>    
  17.             <li>
  18.                 <a href="{{ url_for ('main.about') }}">About</a>
  19.             </li>
  20.             <!-- if the current user is logged in the code activates -->
  21.             {% if current_user.is_authenticated %}
  22.                 <li>              
  23.                     <a href="{{ url_for ('auth.logoff') }}">Logoff</a>
  24.                 </li>
  25.                 <li>
  26.                     <a href="{{ url_for ('postinfo.new_post')}}">New Posts</a>
  27.                 </li>
  28.                 <li>
  29.                     <a href="{{ url_for ('main.profile', username = current_user.username) }}"> Profile </a>
  30.                 </li>
  31.             <!-- if the current user is not logged in the code activates -->
  32.             {% else %}
  33.                 <li>
  34.                     <a href="{{ url_for ('auth.login') }}">Login</a>
  35.                 </li>
  36.                 <li>
  37.                     <a href="{{ url_for ('auth.register') }}">Register</a>
  38.                 </li>
  39.             {% endif %}
  40.             <li>  
  41.                 <!-- redirected to /search when I fill out the form -->
  42.                 <form class="searchform" method="POST" action="{{ url_for('main.search') }}">
  43.                         {{ searchform.csrf_token }}
  44.                         {{ searchform.search_input(placeholder='search') }}
  45.                         <input type=submit value=search>
  46.                 </form>
  47.             </li>    
  48.         </ul>
  49.     </nav>
  50. </header>
  51.  
  52.  
  53.  
  54.  
  55.  
  56.      
  57.  
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement