Ctrl K
ComunidadGuías…

webapp/templates/base.html

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
<!doctype html>
<html lang="{{ current_lang }}" dir="{{ 'rtl' if current_lang == 'fa' else 'ltr' }}">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{% block title %}Local SQL Agent{% endblock %}</title>
  <link rel="icon" href="{{ url_for('static', filename='images/favicon.png') }}" type="image/png">
  <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
  <div class="container">
    <header>
      <div class="brand">
        <img class="logo" src="{{ url_for('static', filename='images/favicon.png') }}" alt="IME logo">
        Local SQL Agent
      </div>
      <div class="header-right">
        {% if username %}
        <nav>
          <span class="user">{{ username }}</span>
          {% if current_user == admin_user %}
          <a class="btn btn-small" href="{{ url_for('register') }}">{{ _("Add user") }}</a>
          {% endif %}
          <a class="btn btn-small btn-danger" href="{{ url_for('logout') }}">{{ _("Logout") }}</a>
        </nav>
        {% endif %}
        <div class="lang-switch" role="group" aria-label="Language">
          {% for code, label in langs %}
          <a class="lang-btn{{ ' active' if current_lang == code }}" href="{{ url_for('set_lang', lang=code) }}">{{ label }}</a>
          {% endfor %}
        </div>
      </div>
    </header>

    {% with messages = get_flashed_messages(with_categories=true) %}
      {% for category, message in messages %}
        <div class="flash flash-{{ category }}">{{ message }}</div>
      {% endfor %}
    {% endwith %}

    {% block content %}{% endblock %}
  </div>
</body>
</html>