Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- get the error message from wtf forms -->
- {% from "_formhelpers.html" import render_field %}
- <header>
- <!-- Placeholder text I changed to hide my original idea. -->
- <h1> somewebsite.com </h1>
- <p class="subtitle"> A website that does a few things and other things </p>
- <nav>
- <ul>
- <!-- beginning of links -->
- <li>
- <a href="{{ url_for ('payment.donations') }}">Donations</a>
- </li>
- <li>
- <a href="{{ url_for ('main.home') }}">Home</a>
- </li>
- <li>
- <a href="{{ url_for ('main.about') }}">About</a>
- </li>
- <!-- if the current user is logged in the code activates -->
- {% if current_user.is_authenticated %}
- <li>
- <a href="{{ url_for ('auth.logoff') }}">Logoff</a>
- </li>
- <li>
- <a href="{{ url_for ('postinfo.new_post')}}">New Posts</a>
- </li>
- <li>
- <a href="{{ url_for ('main.profile', username = current_user.username) }}"> Profile </a>
- </li>
- <!-- if the current user is not logged in the code activates -->
- {% else %}
- <li>
- <a href="{{ url_for ('auth.login') }}">Login</a>
- </li>
- <li>
- <a href="{{ url_for ('auth.register') }}">Register</a>
- </li>
- {% endif %}
- <li>
- <!-- redirected to /search when I fill out the form -->
- <form class="searchform" method="POST" action="{{ url_for('main.search') }}">
- {{ searchform.csrf_token }}
- {{ searchform.search_input(placeholder='search') }}
- <input type=submit value=search>
- </form>
- </li>
- </ul>
- </nav>
- </header>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement