summaryrefslogtreecommitdiff
path: root/resources/views/layouts/app.twig
blob: ed0d96afe857c73bd682feef47194bf62967252a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{% set theme = user.color|default(config('theme')) %}
<!DOCTYPE html>
<html lang="{{ session_get('locale')|split('_')[0]|escape('html_attr') }}">
<head>
    {% block head %}
        <title>{% block title %}{{ title }}{% endblock %} - {{ config('app_name') }}</title>

        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <link rel="stylesheet" type="text/css" href="{{ asset('assets/theme' ~ theme ~ '.css') }}"/>
        <script type="text/javascript" src="{{ asset('assets/vendor.js') }}"></script>

        {% if page() in ['news', 'user-meetings', '/'] and is_user() -%}
            {% set parameters = {'key': user.api_key} -%}
            {% if page() == 'user-meetings' -%}
                {% set parameters = parameters|merge({'meetings': 1}) -%}
            {% endif %}
            <link href="{{ url('atom', parameters) }}" type="application/atom+xml" rel="alternate" title="Atom Feed">
        {% endif %}

    {% endblock %}
</head>
<body>

{% block body %}
    {% block header %}
        {% include "layouts/parts/navbar.twig" %}
    {% endblock %}

    <div class="container-fluid">
        <div class="row" id="content">
            {% block content %}
                {{ content|raw }}
            {% endblock %}
        </div>
        <div class="row" id="footer">
            {% block footer %}
                {% include "layouts/parts/footer.twig" %}
            {% endblock %}
        </div>
    </div>

    {% block scripts %}{% endblock %}
{% endblock %}

</body>
</html>