{# Specify language for accessibility #} {# Standard favicon #} {# Responsive viewport settings #} {# --- 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 -------------------- #} {# PNG icons for various sizes #} {# SVG icon (preferred by modern browsers) #} {# Apple touch icon #} {# Web App Manifest #} {# -------------------- Core CSS Stylesheets -------------------- #} {% set theme = current_user.theme if current_user and current_user.theme else 'default' %} {# 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 #} {# Changed from 'main_routes.index' to 'index' #} {# 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 --- #}
{# Removed Flask-style get_flashed_messages block #} {# Div for JavaScript-driven status messages (showStatusMessage in utils.js) #}
{# 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 #} {# Script to read URL query parameters and display messages #} {# Page-specific JS Block - Child templates can add scripts here #} {% block body_scripts %}{% endblock %}