YouTransfer/YouTransfer

View on GitHub
src/views/layout.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>
    <head>
        <title>{{ general.title }}</title>
        <link rel="stylesheet" href="/css/styles.css" />
        <meta name="baseurl" value="{{ general.baseUrl }}" />
        <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>
    <body>

        {% if invalidHost %}
            <div class="baseurl alert alert-warning">
                <strong>Warning</strong>: the base URL is set to {{ general.baseUrl }} but you are accessing this page from {{ host }}. It is recommended to <a href="/settings/general/">update the BaseUrl setting</a>.
            </div>
        {% endif %}

        {% if security.encryptionKeyMethod == 'auto' %}
            <div class="baseurl alert alert-warning">
                <strong>Warning</strong>: the encryption key has not been set and as such it has been automatically generated. Please make sure to change it prior to using YouTransfer. <a href="/settings/security/">Update security settings</a>.
            </div>
        {% endif %}

        <header>
            {% block header %}
                {% include "header.html" %}
            {% endblock %}
        </header>

        <div class="container">
            <div class="row">
                {% block content %}
                {% endblock %}
            </div>
        </div>

        <script type="text/javascript" src="/js/vendor.js"></script>
        <script type="text/javascript" src="/js/app.js"></script>
    </body>
</html>