e37ce27256
The class-based is-active/display approach was unreliable due to CSS cascade issues. Switching to direct style.display manipulation bypasses specificity entirely. Also added cache-busting ?v=2 to style.css link. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
64 lines
2.3 KiB
HTML
64 lines
2.3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>ImageRepo - {% block title %}{% endblock %}</title>
|
|
<link rel="icon" href="{{ url_for('static', filename='favicon.svg') }}" type="image/svg+xml">
|
|
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" sizes="any">
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon.png') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}?v=2">
|
|
{% block head %}{% endblock %}
|
|
</head>
|
|
<body{% block body_attrs %}{% endblock %}>
|
|
|
|
{% block body %}
|
|
<div class="mainview">
|
|
|
|
{% block header %}
|
|
<header>
|
|
<nav class="navbar">
|
|
<a class="nav-button" href="{{ url_for('main.index') }}">Showcase</a>
|
|
<a class="nav-button" href="{{ url_for('main.gallery') }}">Gallery</a>
|
|
<div class="nav-dropdown">
|
|
<button class="nav-button nav-dropdown-trigger">Tags</button>
|
|
<div class="nav-dropdown-menu">
|
|
<a href="{{ url_for('main.tag_list') }}">All Tags</a>
|
|
<a href="{{ url_for('main.tag_list', kind='artist') }}">Artists</a>
|
|
<a href="{{ url_for('main.tag_list', kind='character') }}">Characters</a>
|
|
<a href="{{ url_for('main.tag_list', kind='series') }}">Series</a>
|
|
<a href="{{ url_for('main.tag_list', kind='fandom') }}">Fandoms</a>
|
|
<a href="{{ url_for('main.tag_list', kind='rating') }}">Ratings</a>
|
|
<a href="{{ url_for('main.tag_list', kind='archive') }}">Archives</a>
|
|
<a href="{{ url_for('main.tag_list', kind='source') }}">Sources</a>
|
|
<a href="{{ url_for('main.tag_list', kind='post') }}">Posts</a>
|
|
<a href="{{ url_for('main.tag_list', kind='user') }}">User Tags</a>
|
|
</div>
|
|
</div>
|
|
<a class="nav-button" href="{{ url_for('main.settings') }}">Settings</a>
|
|
</nav>
|
|
</header>
|
|
{% endblock %}
|
|
|
|
<!-- FLASH MESSAGES -->
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<div class="flash-container">
|
|
{% for category, message in messages %}
|
|
<div class="flash flash-{{ category }}">{{ message }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
<!-- MAIN CONTENT -->
|
|
<div class="content">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|