Skip to content
Snippets Groups Projects
Select Git revision
  • a9c5d0f0b2fe117c7f48b2fe0182d2bddffdf2a9
  • develop default protected
  • ical-export
  • feature/audit_log
  • fix/index
  • badge-redeem-404
  • 720-schedule_source
  • room-docu
  • chore/event-views
  • 511-schedule-foo-fixed
  • 607-schedule-versions
  • deploy/curl-verbose
  • fix/public-badge-access-rights
  • 445-schedule-redirects
  • 623-wiki-im-baustellenmodus-sollte-mal-als-wiki-admin-trotzdem-seiten-anlegen-bearbeiten-konnen
  • fix/registration_mail_subject
  • feature/conference-query-set
  • feature/568-habitatmanagement
  • feat/unit-integration-tests
  • camp23-prod
  • production
  • prod-2024-12-27_20-15
  • prod-2024-12-27_16-37
  • prod-2024-12-27_16-01
  • prod-2024-12-27_13-29
  • prod-2024-12-27_00-34
  • prod-2024-12-26_21-45
  • prod-2024-12-26_13-12
  • prod-2024-12-26_00-21
  • prod-2024-12-25_21-04
  • prod-2024-12-25_15-54
  • prod-2024-12-25_01-29
  • prod-2024-12-24_14-48
  • prod-2024-12-23_23-39
  • prod-2024-12-22_21-12
  • prod-2024-12-22_17-25
  • prod-2024-12-22_01-34
  • prod-2024-12-22_00-55
  • prod-2024-12-21_13-42
  • prod-2024-12-21_10-44
  • prod-2024-12-20_12-25
41 results

base.html.j2

Blame
  • Forked from hub / hub
    Source project has a limited visibility.
    base.html.j2 5.47 KiB
    {% import "plainui/components/title.html.j2" as titleMacro with context %}
    {% import "plainui/components/header_buttons.html.j2" as hbtns with context %}
    {% import "plainui/components/nav.html.j2" as nav with context %}
    {% import "plainui/components/alert.html.j2" as alert %}
    
    <!DOCTYPE html>
    <html lang="{{ get_language() }}"
          class="no-js"
          data-bs-theme="{{ active_theme() }}">
      <head>
        <meta charset="utf-8">
        <link rel="stylesheet"
              href="{{ static('plainui/%s.css' % (css_scope() ,)) }}">
        <link rel="icon"
              href="{{ static('plainui/img/favicon.ico') }}"
              type="image/x-icon">
        <title>
          {% block title %}
          {% endblock title %}
        </title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        {% block head %}
        {% endblock head %}
        <link href="{{ static('vendor/map/leaflet.css') }}" rel='stylesheet' />
        <script src="{{ static('vendor/map/leaflet.js') }}"></script>
        <link href="{{ static('vendor/map/leaflet.draw.css') }}" rel='stylesheet' />
        <script src="{{ static('vendor/map/leaflet.draw.js') }}"></script>
        <script nonce="{{request.csp_nonce}}">
                document.addEventListener('DOMContentLoaded', (e) => {
                    document.querySelector('html').classList.remove('no-js');
                    document.querySelector('html').classList.add('js');
                });
        </script>
      </head>
      <body>
        {%- block body -%}
          <ul class="visually-hidden">
            <li>
              <a href="#header">Zur Navigation</a>
            </li>
            <li>
              <a href="#content">Zum Inhalt</a>
            </li>
            <li>
              <a href="#footer">Zum Footer</a>
            </li>
          </ul>
          <div class="d-flex">
            {{ nav.main_navbar() }}
            <div class="hub-main container-fluid p-0 hub-bg-L04 overflow-y-scroll">
              {%- if browser_type(request) == 'ie' -%}
                <div class="fixed-top alert bg-primary text-center" role="alert">
                  <a href="https://www.getfirefox.com/"
                     target="_blank"
                     class="h2 bg-secondary text-dark">{{ _("Your Browser is broken. Get a better one here!") }}</a>
                </div>
              {%- endif -%}
              {%- block fullpage -%}
                <main class="container hub-content" id="content">
                  {% if get_messages(request) or (conf and conf.global_notification) %}
                    <div id="messages">
                      {% for message in get_messages(request) %}
                        {% if not message.tags %}
                          {% call alert.info() %}
                            {{ message }}
                          {% endcall %}
                        {% elif message.tags == 'error' %}
                          {% call alert.danger() %}
                            {{ message }}
                          {% endcall %}
                        {% else %}
                          {% call alert.alert(type=message.tags) %}
                            {{ message }}
                          {% endcall %}
                        {% endif %}
                      {% endfor -%}
                    </div>
                  {% endif %}
                  {%- block content %}
                  {% endblock content %}
                </main>
              {% endblock fullpage -%}
              {%- block fullpage_add -%}
              {% endblock fullpage_add -%}
              <footer id="footer" class="container p-3 p-md-5">
                <div class="d-lg-flex justify-content-between">
                  <ul class="d-flex gap-3 list-unstyled">
                    <li>
                      <a class="nav-link"
                         title="{{ _('Contact Us') }}"
                         href="https://help.ccc.de/">{{ _('Contact Us') }}</a>
                    </li>
                    <li>
                      <a class="nav-link"
                         title="{{ _('Disclaimer') }}"
                         href="https://legal.cccv.de">{{ _('Disclaimer') }}</a>
                    </li>
                    <li>
                      <a class="nav-link"
                         title="{{ _('Principles') }}"
                         href="https://help.ccc.de/principles.html">{{ _('Principles') }}</a>
                    </li>
                    <li>
                      <a class="nav-link"
                         title="{{ _('Helpful Teams') }}"
                         href="{{ url('plainui:static_page', page_slug='start') }}#md-helpful-teams">{{ _('Helpful Teams') }}</a>
                    </li>
                  </ul>
                  <ul class="d-flex gap-2 list-unstyled">
                    <li>{{ hbtns.share() }}</li>
                    <!-- Temporary disabled due to 38c3 design implementation.
                    <li>{# hbtns.themeswitcher() #}</li>
                    -->
                    <li>{{ hbtns.globe() }}</li>
                  </ul>
                </div>
              </footer>
            </div>
          </div>
        {%- endblock body -%}
      </body>
      <script async
              src="{{ static('plainui/vendor/bootstrap5/bootstrap.bundle.min.js') }}" /></script>
      <script nonce="{{request.csp_nonce}}">
            setTimeout(() => {
                var options = {
                    html: true,
                    title: "VOGC Ebbs",
                    //html element
                    //content: $("#popover-content")
                    content: document.querySelector('[data-name="popover-content"]')
                    //Doing below won't work. Shows title only
                    //content: $("#popover-content").html()
    
                }
                var exampleEl = document.getElementById('apps')
                var popover = new bootstrap.Popover(exampleEl, options)
            }, 500);
      </script>
      {%- block jstools -%}{%- endblock jstools -%}
    
      </html>