{# Specify language for accessibility #} {# Responsive viewport settings #} {# CSRF Protection Token (for AJAX requests) #} {# --- Page Title Block --- #} {# Child templates override this block with their specific title. #} {# Base provides the application name as a default/suffix. #} {% block title %}{{ app_name | default('Bedrock Server Manager') }}{% endblock %} {# -------------------- Favicons / Icons -------------------- #} {# Standard favicon #} {# PNG icons for various sizes #} {# SVG icon (preferred by modern browsers) #} {# Apple touch icon #} {# Web App Manifest #} {# -------------------- Core CSS Stylesheets -------------------- #} {# Added controls CSS #} {# Conditional Panorama Background Override #} {% if panorama_url %} {% endif %} {# Page-specific CSS Block - Child templates can add extra stylesheets here #} {% block head_styles %}{% endblock %} {# Page-specific JS Block in Head - Child templates can add scripts needed early #} {% block head_scripts %}{% endblock %} {# Main content container - defined in base.css #}
{# --- Page Header --- #}
{# Link back to the main dashboard #} {# Logo Image #} {# Main Application Title - Apply splitting logic HERE #}

{% set name_parts = (app_name or 'Bedrock Server Manager').rsplit(' ', 1) %} {# Display first part(s) if they exist #} {{ name_parts[0] if name_parts|length > 1 else '' }} {# Add a space only if there were preceding parts #} {{ ' ' if name_parts|length > 1 else '' }} {# Wrap the last word (or the only word) in a span for styling/anchoring #} {{ name_parts[-1] }} {# Decorative Splash Text - Positioned via CSS relative to header/title #} {{ splash_text | default("It's Web Based!") }}

{# --- Main Content Area --- #}
{# Flash Messages Display Area #} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% set css_class = 'message-box' %} {% if category == 'error' or category == 'danger' %} {% set css_class = 'message-box message-error' %} {% elif category == 'warning' %} {% set css_class = 'message-box message-warning' %} {% elif category == 'info' %} {# {% set css_class = 'message-box message-info' %} #} {% endif %}
{{ message }}
{% endfor %} {% endif %} {% endwith %} {# --- End Flash Messages --- #} {# Main Content Block - Child templates inject their content here #} {% block content %}{% endblock %}
{# --- Footer --- #} {# --- End Footer --- #}
{# --- End of .container --- #} {# -------------------- Scripts at End of Body -------------------- #} {# Load global utilities first #} {# Page-specific JS Block - Child templates can add scripts here #} {% block body_scripts %}{% endblock %}