gbazilio/nfebrasil

View on GitHub
nferoot/templates/base.html

Summary

Maintainability
Test Coverage
{% load i18n %}
{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="API Nota Fiscal">
    <meta name="author" content="Guilherme Bazilio">

    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="{% static "nferoot/css/ie10-viewport-bug-workaround.css" %}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="{% static "nferoot/css/jumbotron-narrow.css" %}" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/styles/default.min.css">

    {% block css %}{% endblock %}

    <title>NFeBrasil API - {% block title %}{% endblock %}</title>
</head>

<body>
    <div class="container">
        <div class="header clearfix">
            <nav>
                <ul class="nav nav-pills pull-right">
                    <li role="presentation" class="active"><a href="{% url 'index' %}">{% trans "Home" %}</a></li>
                    {% if user.is_authenticated %}
                        <li role="presentation"><a href="/o/applications">{% trans "Applications "%}</a></li>
                        <li role="presentation"><a href="{% url 'auth_password_change' %}">{% trans "Change password" %}</a></li>
                        <li role="presentation"><a href="{% url 'auth_logout' %}?next=/ ">{% trans "Log out" %} ({{ user.username }})</a></li>
                    {% else %}
                        <li role="presentation"><a href="{% url 'auth_login' %}">{% trans "Log in" %}</a></li>
                    {% endif %}
                </ul>
            </nav>
            <h3 class="text-muted">NFeBrasil API</h3>
        </div>

        {% block content %}{% endblock %}

        <footer class="footer">
            <p>NFeBrasil API - Consumo de dados de NFe estruturado.</p>
        </footer>
    </div>

    <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/highlight.min.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</body>