mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
99 lines
2.7 KiB
HTML
99 lines
2.7 KiB
HTML
{% extends "packages/package_base.html" %}
|
|
|
|
{% block title %}
|
|
{{ _("Supported Games") }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<a class="float-right btn btn-secondary" href="{{ url_for('flatpage', path='help/game_support') }}">
|
|
{{ _("Documentation") }}
|
|
</a>
|
|
<h2 class="mt-0">{{ self.title() }}</h2>
|
|
|
|
<p class="alert alert-warning">
|
|
This feature is experimental
|
|
</p>
|
|
|
|
<div class="list-group">
|
|
<div class="list-group-item">
|
|
<div class="row">
|
|
<span class="col-5">
|
|
{{ _("Package") }}
|
|
</span>
|
|
<span class="col-5">
|
|
{{ _("Source") }}
|
|
</span>
|
|
<span class="col-2 text-right">
|
|
{{ _("Supported?") }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
{% for support in package.getSortedSupportedGames(True) %}
|
|
<a class="list-group-item list-group-item-action"
|
|
href="{{ support.game.getURL('packages.view') }}">
|
|
<div class="row">
|
|
<span class="col-5">
|
|
{{ _("%(title)s by %(display_name)s",
|
|
title=support.game.title, display_name=support.game.author.display_name) }}
|
|
</span>
|
|
<span class="col-5">
|
|
{% if support.confidence == 1 %}
|
|
{{ _("Detected from dependencies") }}
|
|
{% elif support.confidence == 11 %}
|
|
{{ _("Added by Editor") }}
|
|
{% elif support.confidence == 10 %}
|
|
{{ _("mod.conf") }}
|
|
{% else %}
|
|
{{ support.confidence }}
|
|
{% endif %}
|
|
</span>
|
|
<span class="col-2 text-right">
|
|
{% if support.supports %}
|
|
<span class="badge badge-success">Yes</span>
|
|
{% else %}
|
|
<span class="badge badge-danger">No</span>
|
|
{% endif %}
|
|
</span>
|
|
</div>
|
|
</a>
|
|
{% else %}
|
|
<div class="list-group-item text-muted">
|
|
{{ _("No specific game is required") }}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% if mod_conf_lines %}
|
|
<h3>{{ _("Generated mod.conf lines") }}</h3>
|
|
<pre><code>{{ mod_conf_lines }}</code></pre>
|
|
{% endif %}
|
|
|
|
{% if form %}
|
|
<h2>Options</h2>
|
|
|
|
{% from "macros/forms.html" import render_field, render_checkbox_field, render_submit_field %}
|
|
<form method="POST" action="" class="tableform">
|
|
{{ form.hidden_tag() }}
|
|
|
|
{{ render_checkbox_field(form.enable_support_detection, disabled=force_game_detection) }}
|
|
{% if force_game_detection %}
|
|
<p class="text-muted">
|
|
{{ _("You need to manually define at least one supported game before you can turn this off.") }}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if package.checkPerm(current_user, "EDIT_PACKAGE") and current_user not in package.maintainers %}
|
|
<h3>
|
|
{{ _("Editor Overrides") }}
|
|
<i class="ml-2 fas fa-user-edit"></i>
|
|
</h3>
|
|
{{ render_field(form.supported) }}
|
|
{{ render_field(form.unsupported) }}
|
|
{% endif %}
|
|
|
|
{{ render_submit_field(form.submit, class_="mt-4 btn btn-primary") }}
|
|
</form>
|
|
{% endif %}
|
|
{% endblock %}
|