home » zplus/freepost.git
ID: 3a73c5fc8648942757a862bd4f478938492089ee
50 lines — 2K — View raw


<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        
        <link href="css/bootstrap.min.css" rel="stylesheet">
        <link href="css/bootstrap-theme.min.css" rel="stylesheet">
        <link href="css/freepost.css" rel="stylesheet">
        
        <title>freepost</title>
    </head>
    
    <body>
        <div class="container">
        
            <div class="header">
                <a href="{{ ''|docroot }}" class="logo">
                    free
                    
                    {# &nbsp; is an extra space because "post" is displayed attached to the picture (not sure why) #}
                    <img alt="🐵&nbsp;" title="freepost" src="images/freepost.png" />
                    
                    post
                </a>
                
                <p class="menu">
                    <a href="{{ ''|docroot }}">Hot</a>                    <a href="{{ 'new'|docroot }}">New</a>                    <a href="{{ 'submit'|docroot }}">Submit</a>                    <a href="{{ 'about'|docroot }}">About</a>
                    {% if user %}
                        {% set unread_messages = new_messages() %}
                        
                        <a href="{{ 'user'|docroot }}" class="{{ unread_messages ? 'new_messages' }}">
                            {{ user.name }}
                            
                            {% if unread_messages %}
                                ({{ unread_messages }})
                            {% endif %}
                        </a>                        
                        <a href="{{ 'logout'|docroot }}">Log out</a>
                    {% else %}
                        <a href="{{ 'login'|docroot }}">Log in</a>
                    {% endif %}
                </p>
            </div>
            
            <div class="content">