2018-03-18 18:43:30 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2023-04-30 01:53:55 +02:00
|
|
|
<title>{{ self.title() | normalize_whitespace }} - {{ config.USER_APP_NAME }}</title>
|
2019-06-07 17:54:33 +02:00
|
|
|
<link rel="shortcut icon" href="/favicon-16.png" sizes="16x16">
|
|
|
|
<link rel="icon" href="/favicon-128.png" sizes="128x128">
|
|
|
|
<link rel="icon" href="/favicon-32.png" sizes="32x32">
|
2023-05-13 18:45:22 +02:00
|
|
|
<meta name="og:site_name" content="ContentDB">
|
2023-05-01 00:22:10 +02:00
|
|
|
<meta name="og:title" content="{{ self.title() | normalize_whitespace }}">
|
2023-07-15 20:09:47 +02:00
|
|
|
{% if self.description and self.description != "" -%}
|
2023-04-30 01:53:55 +02:00
|
|
|
<meta name="description" content="{{ self.description() | normalize_whitespace }}">
|
|
|
|
<meta name="og:description" content="{{ self.description() | normalize_whitespace }}">
|
2023-05-13 19:20:54 +02:00
|
|
|
{%- endif %}
|
2023-05-13 18:45:22 +02:00
|
|
|
|
2023-12-16 17:53:07 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/libs/bootstrap.min.css?v=4">
|
2024-06-07 07:25:32 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/custom.css?v=52">
|
2023-05-13 18:45:22 +02:00
|
|
|
<link rel="search" type="application/opensearchdescription+xml" href="/static/opensearch.xml" title="ContentDB" />
|
|
|
|
|
|
|
|
{% if noindex -%}
|
|
|
|
<meta name="robots" content="noindex">
|
|
|
|
{%- endif %}
|
|
|
|
|
2018-05-11 16:04:17 +02:00
|
|
|
{% block headextra %}{% endblock %}
|
2018-03-18 18:43:30 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2018-12-21 15:45:54 +01:00
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
2018-05-18 01:16:10 +02:00
|
|
|
<div class="container">
|
2023-05-26 22:39:24 +02:00
|
|
|
<a class="navbar-brand" href="/">{{ config.USER_APP_NAME }}</a>
|
2023-08-22 20:58:43 +02:00
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
|
2018-12-21 15:45:54 +01:00
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarColor01">
|
2023-08-22 20:58:43 +02:00
|
|
|
<ul class="navbar-nav me-auto">
|
2022-01-07 22:08:56 +01:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('packages.list_all', type='mod') }}">{{ _("Mods") }}</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('packages.list_all', type='game') }}">{{ _("Games") }}</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('packages.list_all', type='txp') }}">{{ _("Texture Packs") }}</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('packages.list_all', random=1, lucky=1) }}">{{ _("Random") }}</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('flatpage', path='help') }}">{{ _("Help") }}</a>
|
|
|
|
</li>
|
2018-12-21 15:45:54 +01:00
|
|
|
</ul>
|
2023-08-22 20:58:43 +02:00
|
|
|
<form class="d-flex my-2 my-lg-0" method="GET" action="/packages/">
|
2018-12-21 15:45:54 +01:00
|
|
|
{% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<div class="input-group m-0">
|
2022-10-13 18:21:31 +02:00
|
|
|
<input class="form-control" name="q" type="text"
|
2024-06-08 11:46:47 +02:00
|
|
|
placeholder="{% if query_hint %}{{ _('Search %(type)s', type=query_hint) }}{% else %}{{ _('Search all packages') }}{% endif %}"
|
2022-10-13 18:21:31 +02:00
|
|
|
value="{{ query or ''}}">
|
2023-08-22 20:58:43 +02:00
|
|
|
<button type="submit" class="btn btn-secondary" title="{{ _('Search') }}">
|
|
|
|
<i class="fas fa-search"></i>
|
|
|
|
</button>
|
2022-10-13 18:21:31 +02:00
|
|
|
</div>
|
2018-12-23 18:34:44 +01:00
|
|
|
<!-- <input class="btn btn-secondary my-2 my-sm-0"
|
2023-08-22 20:58:43 +02:00
|
|
|
data-bs-toggle="tooltip" data-bs-placement="bottom"
|
2018-12-23 18:11:52 +01:00
|
|
|
title="Go to the first found result for this query."
|
2018-12-23 18:34:44 +01:00
|
|
|
type="submit" name="lucky" value="First" /> -->
|
2018-12-21 15:45:54 +01:00
|
|
|
</form>
|
2023-08-22 20:58:43 +02:00
|
|
|
<ul class="navbar-nav ms-auto">
|
2018-12-21 15:45:54 +01:00
|
|
|
{% if current_user.is_authenticated %}
|
2020-09-19 20:30:33 +02:00
|
|
|
{% if todo_list_count is not none %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link notification-icon"
|
2021-01-29 20:38:14 +01:00
|
|
|
href="{{ url_for('todo.view_editor') }}"
|
2020-09-19 20:30:33 +02:00
|
|
|
title="{{ _('Work Queue') }}">
|
|
|
|
{% if todo_list_count > 0 %}
|
|
|
|
<i class="fas fa-inbox"></i>
|
2024-03-06 19:24:40 +01:00
|
|
|
<span class="badge rounded-pill badge-notify">{{ todo_list_count }}</span>
|
2020-09-19 20:30:33 +02:00
|
|
|
{% else %}
|
|
|
|
<i class="fas fa-inbox" ></i>
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</li>
|
2021-01-29 20:38:14 +01:00
|
|
|
{% else %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link notification-icon"
|
|
|
|
href="{{ url_for('todo.view_user', username=current_user.username) }}"
|
|
|
|
title="{{ _('To do list') }}">
|
|
|
|
<i class="fas fa-tasks" ></i>
|
|
|
|
</a>
|
|
|
|
</li>
|
2020-09-19 20:30:33 +02:00
|
|
|
{% endif %}
|
2021-01-29 20:38:14 +01:00
|
|
|
|
2020-09-19 20:30:33 +02:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link notification-icon"
|
|
|
|
href="{{ url_for('notifications.list_all') }}"
|
|
|
|
title="{{ _('Notifications') }}">
|
|
|
|
{% if current_user.notifications %}
|
|
|
|
<i class="fas fa-bell"></i>
|
2021-07-21 03:31:51 +02:00
|
|
|
{% set num_notifs = current_user.notifications | length %}
|
|
|
|
{% if num_notifs > 60 %}
|
2024-03-06 19:24:40 +01:00
|
|
|
<span class="badge rounded-pill badge-notify badge-emoji">
|
2021-07-21 03:31:51 +02:00
|
|
|
😢
|
|
|
|
</span>
|
|
|
|
{% else %}
|
2024-03-06 19:24:40 +01:00
|
|
|
<span class="badge rounded-pill badge-notify">
|
2021-07-21 03:31:51 +02:00
|
|
|
{{ num_notifs }}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2020-09-19 20:30:33 +02:00
|
|
|
{% else %}
|
|
|
|
<i class="fas fa-bell" ></i>
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link"
|
|
|
|
href="{{ url_for('packages.create_edit') }}"
|
|
|
|
title="{{ _('Add Package') }}">
|
|
|
|
<i class="fas fa-plus"></i>
|
|
|
|
</a>
|
|
|
|
</li>
|
2022-01-07 20:42:52 +01:00
|
|
|
|
2018-12-21 15:45:54 +01:00
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle"
|
2023-08-22 20:58:43 +02:00
|
|
|
data-bs-toggle="dropdown"
|
2022-01-07 20:42:52 +01:00
|
|
|
role="button"
|
|
|
|
aria-expanded="false">
|
|
|
|
{{ current_user.display_name }}
|
|
|
|
<span class="caret"></span>
|
|
|
|
</a>
|
2018-12-21 15:45:54 +01:00
|
|
|
|
2020-07-14 05:28:27 +02:00
|
|
|
<ul class="dropdown-menu dropdown-menu-right" role="menu">
|
2018-12-21 15:45:54 +01:00
|
|
|
<li class="nav-item">
|
2022-01-07 21:58:32 +01:00
|
|
|
<a class="nav-link" href="{{ url_for('users.profile', username=current_user.username) }}">
|
|
|
|
{{ _("Profile") }}
|
|
|
|
</a>
|
2018-12-27 16:32:15 +01:00
|
|
|
</li>
|
2018-12-25 18:56:51 +01:00
|
|
|
<li class="nav-item">
|
2022-01-07 21:58:32 +01:00
|
|
|
<a class="nav-link" href="{{ url_for('todo.view_user', username=current_user.username) }}">
|
|
|
|
{{ _("To do list") }}
|
|
|
|
</a>
|
2018-12-27 16:32:15 +01:00
|
|
|
</li>
|
2023-08-14 22:48:50 +02:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('collections.list_all', author=current_user.username) }}">
|
|
|
|
{{ _("My Collections") }}
|
|
|
|
</a>
|
|
|
|
</li>
|
2022-11-09 21:09:40 +01:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('users.statistics', username=current_user.username) }}">
|
|
|
|
{{ _("Statistics") }}
|
|
|
|
</a>
|
|
|
|
</li>
|
2023-06-19 22:27:49 +02:00
|
|
|
{% if current_user.rank.at_least(current_user.rank.EDITOR) or check_global_perm(current_user, "CREATE_TAG") %}
|
2022-01-07 21:27:45 +01:00
|
|
|
<li class="dropdown-divider"></li>
|
2021-12-21 00:52:51 +01:00
|
|
|
{% endif %}
|
2023-06-19 22:27:49 +02:00
|
|
|
{% if current_user.rank.at_least(current_user.rank.MODERATOR) %}
|
2022-01-07 21:58:32 +01:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('admin.audit') }}">
|
|
|
|
{{ _("Audit Log") }}
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-12-21 15:45:54 +01:00
|
|
|
{% endif %}
|
2023-06-19 22:27:49 +02:00
|
|
|
{% if current_user.rank.at_least(current_user.rank.EDITOR) %}
|
2024-01-28 22:51:31 +01:00
|
|
|
<li class="nav-item"><a class="nav-link" href="{{ url_for('admin.admin_page') }}">{{ _("Admin") }}</a></li>
|
2021-12-21 00:52:51 +01:00
|
|
|
{% endif %}
|
2022-01-07 21:27:45 +01:00
|
|
|
<li class="dropdown-divider"></li>
|
2020-12-05 22:14:48 +01:00
|
|
|
<li class="nav-item">
|
2022-01-07 21:58:32 +01:00
|
|
|
<a class="nav-link" href="{{ url_for('users.profile_edit', username=current_user.username) }}">
|
|
|
|
{{ _("Settings") }}
|
|
|
|
</a>
|
2020-12-05 22:14:48 +01:00
|
|
|
</li>
|
2020-12-04 23:05:10 +01:00
|
|
|
<li class="nav-item"><a class="nav-link" href="{{ url_for('users.logout') }}">{{ _("Sign out") }}</a></li>
|
2018-05-18 01:16:10 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
2018-12-21 15:45:54 +01:00
|
|
|
{% else %}
|
2020-12-04 23:05:10 +01:00
|
|
|
<li><a class="nav-link" href="{{ url_for('users.login') }}">{{ _("Sign in") }}</a></li>
|
2018-05-18 01:16:10 +02:00
|
|
|
{% endif %}
|
2022-01-07 20:42:52 +01:00
|
|
|
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle"
|
2023-08-22 20:58:43 +02:00
|
|
|
data-bs-toggle="dropdown"
|
2022-01-07 20:42:52 +01:00
|
|
|
role="button"
|
|
|
|
aria-expanded="false">
|
|
|
|
<i class="fas fa-language"></i>
|
2024-02-25 16:41:37 +01:00
|
|
|
<span class="sr-only">{{ _("Languages") }}</span>
|
2022-01-07 20:42:52 +01:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu dropdown-menu-right" role="menu">
|
2022-01-08 03:34:19 +01:00
|
|
|
{% for locale, locale_name in config["LANGUAGES"].items() %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<form method="POST" action="{{ url_for('set_locale') }}">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
|
<input type="hidden" name="locale" value="{{ locale }}" />
|
|
|
|
<input type="hidden" name="r" value="{{ url_set_query() }}" />
|
|
|
|
<input type="submit" class="btn btn-link nav-link" value="{{ locale_name }} ({{ locale }})">
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2022-01-07 21:27:45 +01:00
|
|
|
<li class="dropdown-divider"></li>
|
2022-01-08 00:27:00 +01:00
|
|
|
<li class="nav-item ">
|
|
|
|
<a class="nav-link" href="https://hosted.weblate.org/projects/minetest/contentdb/">
|
2022-01-07 21:27:45 +01:00
|
|
|
<small>
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("Help translate ContentDB") }}
|
2022-01-07 21:27:45 +01:00
|
|
|
</small>
|
|
|
|
</a>
|
|
|
|
</li>
|
2022-01-07 20:42:52 +01:00
|
|
|
</ul>
|
|
|
|
</form>
|
|
|
|
</li>
|
2018-12-21 15:45:54 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
2018-05-18 01:16:10 +02:00
|
|
|
</div>
|
2018-03-18 18:43:30 +01:00
|
|
|
</nav>
|
|
|
|
|
|
|
|
{% block flash_messages %}
|
|
|
|
{%- with messages = get_flashed_messages(with_categories=true) -%}
|
|
|
|
{% if messages %}
|
|
|
|
<ul id="alerts">
|
|
|
|
{% for category, message in messages %}
|
2018-12-22 14:14:08 +01:00
|
|
|
<li class="alert alert-{{category}} container">
|
2018-03-18 18:43:30 +01:00
|
|
|
<span class="icon_message"></span>
|
|
|
|
|
2020-01-25 00:19:06 +01:00
|
|
|
{{ message }}
|
2018-03-18 18:43:30 +01:00
|
|
|
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{%- endwith %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block container %}
|
2018-12-21 15:45:54 +01:00
|
|
|
<main class="container mt-4">
|
2018-03-18 18:43:30 +01:00
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
</main>
|
|
|
|
{% endblock %}
|
2018-05-18 02:27:11 +02:00
|
|
|
|
2023-11-17 20:28:05 +01:00
|
|
|
<footer class="my-5 pt-5">
|
|
|
|
<p class="pt-3 mb-1">
|
2023-04-24 00:27:18 +02:00
|
|
|
ContentDB © 2018-23 to <a href="{{ url_for('flatpage', path='about') }}">rubenwardy</a>
|
2020-12-22 12:14:16 +01:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<ul class="list-inline my-1">
|
|
|
|
<li class="list-inline-item"><a href="{{ url_for('flatpage', path='help') }}">{{ _("Help") }}</a></li>
|
2023-04-24 00:27:18 +02:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('flatpage', path='about') }}">{{ _("About") }}</a></li>
|
2024-04-14 16:41:47 +02:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('flatpage', path='help/contact_us') }}">{{ _("Contact Us") }}</a></li>
|
2023-04-19 03:28:26 +02:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('flatpage', path='rules') }}">{{ _("Rules") }}</a></li>
|
2020-12-22 12:14:16 +01:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('flatpage', path='policy_and_guidance') }}">{{ _("Policy and Guidance") }}</a></li>
|
2024-04-14 16:41:47 +02:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('donate.donate') }}#contentdb">{{ _("Donate") }}</a></li>
|
2021-02-26 00:03:32 +01:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('flatpage', path='help/api') }}">{{ _("API") }}</a></li>
|
2020-12-22 12:14:16 +01:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('flatpage', path='privacy_policy') }}">{{ _("Privacy Policy") }}</a></li>
|
2022-07-20 00:20:13 +02:00
|
|
|
{% if request.endpoint != "flatpage" and request.endpoint != "report.report" %}
|
2023-03-24 18:56:02 +01:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('report.report', url=url_current()) }}">{{ _("Report / DMCA") }}</a></li>
|
2022-01-21 00:37:17 +01:00
|
|
|
{% endif %}
|
2020-12-22 12:14:16 +01:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('users.list_all') }}">{{ _("User List") }}</a></li>
|
2022-10-13 17:58:12 +02:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('threads.list_all') }}">{{ _("Threads") }}</a></li>
|
2023-08-15 21:39:32 +02:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('collections.list_all') }}">{{ _("Collections") }}</a></li>
|
2024-04-14 16:41:47 +02:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('donate.donate') }}">{{ _("Support Creators") }}</a></li>
|
2024-03-03 03:48:44 +01:00
|
|
|
<li class="list-inline-item"><a href="{{ url_for('translate.translate') }}">{{ _("Translate Packages") }}</a></li>
|
2020-12-22 12:14:16 +01:00
|
|
|
<li class="list-inline-item"><a href="https://github.com/minetest/contentdb">{{ _("Source Code") }}</a></li>
|
|
|
|
</ul>
|
2019-11-15 00:38:11 +01:00
|
|
|
|
2023-12-30 19:07:00 +01:00
|
|
|
<form method="POST" action="{{ url_for('set_nonfree') }}" class="my-3">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
|
{% if hide_nonfree %}
|
|
|
|
<input type="submit" class="btn btn-sm btn-secondary" value="{{ _('Show non-free packages') }}">
|
|
|
|
{% else %}
|
|
|
|
<input type="submit" class="btn btn-sm btn-secondary" value="{{ _('Hide non-free packages') }}">
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
2024-04-30 00:17:14 +02:00
|
|
|
<p class="text-warning">
|
|
|
|
{{ _("Our privacy policy has been updated (%(date)s)", date="2024-04-30") }}
|
|
|
|
</p>
|
2023-12-30 19:07:00 +01:00
|
|
|
|
2019-11-15 00:38:11 +01:00
|
|
|
{% if debug %}
|
|
|
|
<p style="color: red">
|
|
|
|
DEBUG MODE ENABLED
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2018-05-18 02:27:11 +02:00
|
|
|
</footer>
|
2018-12-21 15:45:54 +01:00
|
|
|
|
2023-09-02 23:37:52 +02:00
|
|
|
<link href="/static/fa/css/all.css" rel="stylesheet">
|
2023-08-22 20:58:43 +02:00
|
|
|
<script src="/static/libs/bootstrap.min.js?v=2"></script>
|
2020-01-23 00:10:02 +01:00
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
{% block scriptextra %}{% endblock %}
|
2018-12-21 15:45:54 +01:00
|
|
|
</body>
|
2018-03-18 18:43:30 +01:00
|
|
|
</html>
|