2023-05-19 20:40:03 +02:00
{% extends "base.html" %}
{% block title %}
{{ _("Game Support for %(username)s", username=user.display_name) }}
{% endblock %}
{% block content %}
< a class = "btn btn-secondary float-right" href = "/help/game_support/" > {{ _("Help") }}< / a >
< h1 class = "mb-5" > {{ self.title() }}< / h1 >
< p >
{{ _("You should specify the games supported by your mods and texture packs.") }}
{{ _("Specifying game support makes it easier for players to find your content.") }}
2023-06-20 01:36:33 +02:00
{{ _("If your package is game independent, confirm this using 'Supports all games'") }}
2023-05-19 20:40:03 +02:00
< / p >
< div class = "list-group mt-3 mb-5" >
{% for package in packages %}
< div class = "list-group-item" >
< div class = "row" >
< div class = "col-md-2 text-muted" >
< img
class="img-fluid"
style="max-height: 22px; max-width: 22px;"
2023-06-18 22:56:19 +02:00
src="{{ package.get_thumb_or_placeholder() }}" />
2023-05-19 20:40:03 +02:00
< span class = "pl-2" >
{{ package.title }}
< / span >
< / div >
< div class = "col" >
2023-06-18 22:11:17 +02:00
{% if package.supports_all_games %}
< span class = "text-muted pr-2" >
< i >
{{ _("Supports all games") }}
< / i >
< / span >
{% endif %}
{% set supported_games = package.get_sorted_game_support_pair()[0] %}
2023-05-19 20:40:03 +02:00
{% if supported_games %}
{% for support in supported_games %}
< a class = "badge badge-secondary"
2023-06-18 22:56:19 +02:00
href="{{ support.game.get_url('packages.view') }}">
2023-05-19 20:40:03 +02:00
{{ _("%(title)s by %(display_name)s",
title=support.game.title, display_name=support.game.author.display_name) }}
< / a >
{% endfor %}
2023-06-18 22:11:17 +02:00
{% elif not package.supports_all_games %}
< span class = "text-danger" >
{{ _("No supported games listed. Please either add supported games or check 'Supports all games'") }}
2023-05-19 20:40:03 +02:00
< / span >
{% endif %}
< / div >
< div class = "col-auto" >
2023-06-18 22:56:19 +02:00
< a class = "btn btn-sm btn-primary" href = "{{ package.get_url('packages.game_support') }}" > Game Support< / a >
< a class = "btn btn-sm btn-secondary" href = "{{ package.get_url('packages.view') }}" > Package< / a >
2023-05-19 20:40:03 +02:00
< / div >
< / div >
< / div >
{% else %}
< p class = "text-muted" > {{ _("Nothing to do :)") }}< / p >
{% endfor %}
< / div >
2023-06-18 22:11:17 +02:00
< h2 > Bulk support all games< / h2 >
< p >
{{ _("Click the button below to confirm that all games without listed supported_games (red text above) do support all games, except for any games listed in unsupported_games.") }}
< / p >
< form method = "post" action = "{{ url_for('todo.confirm_supports_all_games', username=user.username) }}" >
< input type = "hidden" name = "csrf_token" value = "{{ csrf_token() }}" / >
< input type = "submit" value = "{{ _('Confirm') }}" class = "btn btn-primary" >
< / form >
2023-05-19 20:40:03 +02:00
{% endblock %}