{% load staticfiles %}

<!DOCTYPE html>
<html>
    <head>
    <link href="{% static 'basic-template.css' %}" rel="stylesheet">
    <link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://getbootstrap.com/dist/css/bootstrap-theme.min.css" rel="stylesheet">
    <title>{% block title %}{% endblock %}</title>
    </head>
    <body>
        <!-- header with links -->
        <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              <a class="navbar-brand" href="#">Revuo</a>
            </div>
            <div class="collapse navbar-collapse">
              <ul class="nav navbar-nav">
                <li class="active"><a href="{% url 'revuo:home' %}">Home</a></li>
                <li><a href="{% url 'revuo:news' %}">News</a></li>
                <li><a href="{% url 'revuo:blog' %}">Blog</a></li>
                <li><a href="{% url 'revuo:publications' %}">Publications</a></li>
                <li><a href="{% url 'revuo:staff' %}">Staff</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Restricted <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        {% if user.is_authenticated %}
                            <li class="dropdown-header">Create</li>
                            <li><a href="{% url 'revuo:add_news' %}">News</a></li>
                            <li><a href="{% url 'revuo:add_blog' %}">Blog Post</a></li>
                            <li><a href="{% url 'revuo:add_publication' %}">Publication</a></li>
                            <li class="divider"></li>
                            <li class="dropdown-header">User</li>
                            <li><a href="{% url 'revuo:edit_profile' %}">Edit Profile</a></li>
                            <li><a href="{% url 'password_change' %}">Change Password</a></li>
                            {% if user.author.editor %}
                            <li class="divider"></li>
                            <li class="dropdown-header">Moderation</li>
                            <li><a href="{% url 'revuo:publisher' %}">Pending Items</a></li>
                            {% endif %}
                            <li class="divider"></li>
                            <li><a href="{% url 'revuo:logout' %}">Logout</a></li>
                        {% else %}
                            <li><a href="{% url 'revuo:login' %}">Login</a></li>
                        {% endif %}
                    </ul>
                </li>
              </ul>
            </div><!--/.nav-collapse -->
          </div>
        </div> 
        <!-- end of header -->

        {% block page_body %}
        {% endblock %}

        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
        <script src="http://getbootstrap.com/dist/js/bootstrap.min.js"></script>
        {% block scripts %}
        {% endblock %}
    </body>

</html>

