diff --git a/app/blueprints/admin/actions.py b/app/blueprints/admin/actions.py index 462a7b7a..ef220572 100644 --- a/app/blueprints/admin/actions.py +++ b/app/blueprints/admin/actions.py @@ -271,8 +271,8 @@ def remind_missing_game_support(): packages_list = _package_list(packages) add_notification(user, system_user, NotificationType.PACKAGE_APPROVAL, - f"You need to confirm whether the following packages support all games: {packages_list}", - url_for('todo.all_game_support', username=user.username)) + f"You need to confirm whether the following packages support all games: {packages_list}", + url_for('todo.all_game_support', username=user.username)) db.session.commit() diff --git a/app/blueprints/packages/packages.py b/app/blueprints/packages/packages.py index 77396e1c..ba7754c3 100644 --- a/app/blueprints/packages/packages.py +++ b/app/blueprints/packages/packages.py @@ -653,7 +653,7 @@ class GameSupportForm(FlaskForm): enable_support_detection = BooleanField(lazy_gettext("Enable support detection based on dependencies (recommended)"), [Optional()]) supported = StringField(lazy_gettext("Supported games (Comma-separated)"), [Optional()]) unsupported = StringField(lazy_gettext("Unsupported games (Comma-separated)"), [Optional()]) - supports_all_games = BooleanField(lazy_gettext("Supports all games (unless stated)"), [Optional()]) + supports_all_games = BooleanField(lazy_gettext("Supports all games (unless stated) / is game independent"), [Optional()]) submit = SubmitField(lazy_gettext("Save")) @@ -673,7 +673,7 @@ def game_support(package): can_support_all_games = package.type != PackageType.TXP - can_override = can_edit and current_user not in package.maintainers + can_override = can_edit form = GameSupportForm() if can_edit else None if form and request.method == "GET": diff --git a/app/templates/packages/game_support.html b/app/templates/packages/game_support.html index c389ef33..7ff8baba 100644 --- a/app/templates/packages/game_support.html +++ b/app/templates/packages/game_support.html @@ -46,7 +46,7 @@ {% if support.confidence == 1 %} {{ _("Detected from dependencies") }} {% elif support.confidence == 11 %} - {{ _("Added by Editor") }} + {{ _("Overridden on ContentDB") }} {% elif support.confidence == 10 %} {{ package.get_conf_file_name() }} {% else %} @@ -104,9 +104,12 @@ {% if form.supported and form.unsupported %}
+ {{ _("It's best to add supported/unsupported games to %(conf)s, but in the meantime you can add them here.", + conf=package.get_conf_file_name()) }} +
{{ render_field(form.supported) }} {{ render_field(form.unsupported) }} {% endif %}