2021-01-29 20:38:14 +01:00
{% extends "todo/todo_base.html" %}
{% block title %}
{{ _("%(username)s's to do list", username=user.display_name) }}
{% endblock %}
{% block content %}
2021-07-31 22:35:07 +02:00
{% if user.notification_preferences is none %}
< h2 > {{ _("Misc To do") }}< / h2 >
< div class = "list-group mt-3 mb-5" >
< a class = "list-group-item list-group-item-action"
href="{{ url_for('users.email_notifications', username=user.username) }}">
{{ _("Enable email notifications") }}
< / a >
< / div >
{% endif %}
2022-01-26 03:51:40 +01:00
2021-01-29 20:38:14 +01:00
< h2 > {{ _("Unapproved Packages Needing Action") }}< / h2 >
2021-01-30 01:43:21 +01:00
< div class = "list-group mt-3 mb-5" >
2021-01-29 20:38:14 +01:00
{% for package in unapproved_packages %}
2023-06-18 23:00:24 +02:00
< a class = "list-group-item list-group-item-action" href = "{{ package.get_url('packages.view') }}" >
2021-01-29 20:38:14 +01:00
< div class = "row" >
2021-01-30 17:03:09 +01:00
< div class = "col-sm-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() }}" />
2021-01-29 20:38:14 +01:00
2023-08-22 20:58:43 +02:00
< span class = "ps-2" >
2021-01-30 17:03:09 +01:00
{{ package.title }}
< / span >
< / div >
2021-01-29 20:38:14 +01:00
< div class = "col-sm" >
2022-01-08 00:27:00 +01:00
{{ _("State") }}: {{ package.state.value }}
2021-01-29 20:38:14 +01:00
< / div >
< / div >
< / a >
{% else %}
2021-01-30 17:03:09 +01:00
< p class = "text-muted" > {{ _("Nothing to do :)") }}< / p >
2021-01-29 20:38:14 +01:00
{% endfor %}
< / div >
2023-08-22 20:58:43 +02:00
< a class = "btn btn-secondary float-end" href = "/help/update_config/" >
2022-01-14 19:25:28 +01:00
{{ _("Help") }}
< / a >
2023-08-22 20:58:43 +02:00
< a class = "btn btn-secondary float-end me-2" href = "{{ url_for('packages.bulk_update_config', username=user.username) }}" >
2022-01-08 00:27:00 +01:00
{{ _("See all Update Settings") }}
< / a >
2021-01-30 23:58:55 +01:00
{% if outdated_packages %}
2023-08-22 20:58:43 +02:00
< form class = "float-end me-2" method = "post" action = "{{ url_for('todo.apply_all_updates', username=user.username) }}" >
2021-01-30 23:58:55 +01:00
< input type = "hidden" name = "csrf_token" value = "{{ csrf_token() }}" / >
2023-06-18 23:00:24 +02:00
< input class = "btn btn-primary" type = "submit" value = "{{ _('Create All Releases') }}" / >
2021-01-30 23:58:55 +01:00
< / form >
{% endif %}
2021-01-30 01:43:21 +01:00
< h2 > {{ _("Potentially Outdated Packages") }}< / h2 >
2021-01-30 15:59:02 +01:00
< p >
{{ _("Instead of marking packages as outdated, you can automatically create releases when New Commits or New Tags are pushed to Git by clicking 'Update Settings'.") }}
{% if outdated_packages %}
{{ _("To remove a package from below, create a release or change the update settings.") }}
{% endif %}
< / p >
2021-01-29 20:38:14 +01:00
{% from "macros/todo.html" import render_outdated_packages %}
2021-01-30 01:50:50 +01:00
{{ render_outdated_packages(outdated_packages, current_user) }}
2021-01-29 20:38:14 +01:00
2023-05-19 20:40:03 +02:00
< div class = "mb-4" > < / div >
2023-08-22 20:58:43 +02:00
< a class = "btn btn-secondary float-end" href = "/help/game_support/" >
2023-05-19 20:40:03 +02:00
{{ _("Help") }}
< / a >
2023-08-22 20:58:43 +02:00
< a class = "btn btn-secondary float-end me-2" href = "{{ url_for('todo.all_game_support', username=user.username) }}" >
2023-05-19 20:40:03 +02:00
{{ _("See game support for your packages") }}
< / a >
< h2 > {{ _("Missing Game Support") }}< / h2 >
{% if missing_game_support %}
< 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.") }}
< / p >
{% endif %}
< div class = "list-group mt-3 mb-5" >
{% for package in missing_game_support %}
2023-06-18 22:56:19 +02:00
< a class = "list-group-item list-group-item-action" href = "{{ package.get_url('packages.game_support') }}" >
2023-05-19 20:40:03 +02:00
< 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
2023-08-22 20:58:43 +02:00
< span class = "ps-2" >
2023-05-19 20:40:03 +02:00
{{ package.title }}
< / span >
< / a >
{% else %}
< p class = "text-muted" > {{ _("Nothing to do :)") }}< / p >
{% endfor %}
< / div >
2022-01-26 03:51:40 +01:00
2022-08-09 14:39:43 +02:00
< div class = "mt-5" > < / div >
< h2 id = "missing-screenshots" > {{ _("Missing Screenshots") }}< / h2 >
< div class = "list-group mt-3 mb-5" >
{% for package in packages_with_no_screenshots %}
2023-06-18 22:56:19 +02:00
< a class = "list-group-item list-group-item-action" href = "{{ package.get_url('packages.screenshots') }}" >
2022-08-09 14:39:43 +02:00
< 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() }}" />
2022-08-09 14:39:43 +02:00
2023-08-22 20:58:43 +02:00
< span class = "ps-2" >
2022-08-09 14:39:43 +02:00
{{ package.title }}
< / span >
< / a >
{% else %}
< p class = "text-muted" > {{ _("Nothing to do :)") }}< / p >
{% endfor %}
< / div >
2021-01-30 17:03:09 +01:00
< div class = "mt-5" > < / div >
2022-01-26 03:51:40 +01:00
< h2 id = "small-screenshots" > {{ _("Small Screenshots") }}< / h2 >
{% if packages_with_small_screenshots %}
< p >
{{ _("These packages have screenshots that are too small, and should be replaced.") }}
{{ _("Red and orange are screenshots below the limit, and grey screenshots are below the recommended resolution.") }}
{{ _("The recommended resolution is 1920x1080, and screenshots must be at least %(width)dx%(height)d.",
width=920, height=517) }}
2023-08-22 20:58:43 +02:00
< span class = "badge bg-danger ms-3" >
2022-01-26 03:51:40 +01:00
{{ _("Way too small") }}
< / span >
2023-08-22 20:58:43 +02:00
< span class = "badge bg-warning" >
2022-01-26 03:51:40 +01:00
{{ _("Too small") }}
< / span >
2023-08-22 20:58:43 +02:00
< span class = "badge bg-secondary" >
2022-01-26 03:51:40 +01:00
{{ _("Not HD") }}
< / span >
< / p >
{% endif %}
< div class = "list-group mt-3 mb-5" >
{% for package in packages_with_small_screenshots %}
2023-06-18 22:56:19 +02:00
< a class = "list-group-item list-group-item-action" href = "{{ package.get_url('packages.screenshots') }}" >
2022-01-26 03:51:40 +01:00
< div class = "row" >
< div class = "col-sm-3 text-muted" style = "min-width: 200px;" >
< 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() }}" />
2022-01-26 03:51:40 +01:00
2023-08-22 20:58:43 +02:00
< span class = "ps-2" >
2022-01-26 03:51:40 +01:00
{{ package.title }}
< / span >
< / div >
< div class = "col-sm" >
{% for ss in package.screenshots %}
{% if ss.is_low_res() %}
{% if ss.is_very_small() %}
2023-08-22 20:58:43 +02:00
{% set badge_color = "bg-danger" %}
2022-01-26 03:51:40 +01:00
{% elif ss.is_too_small() %}
2023-08-22 20:58:43 +02:00
{% set badge_color = "bg-warning" %}
2022-01-26 03:51:40 +01:00
{% else %}
2023-08-22 20:58:43 +02:00
{% set badge_color = "bg-secondary" %}
2022-01-26 03:51:40 +01:00
{% endif %}
2023-08-22 20:58:43 +02:00
< span class = "badge {{ badge_color }} ms-2" title = "{{ ss.title }}" >
2022-01-26 03:51:40 +01:00
{{ ss.width }} x {{ ss.height }}
< / span >
{% endif %}
{% endfor %}
< / div >
< / div >
< / a >
{% else %}
< p class = "text-muted" > {{ _("Nothing to do :)") }}< / p >
{% endfor %}
< / div >
2023-08-22 20:58:43 +02:00
< a class = "btn btn-secondary float-end" href = "{{ url_for('todo.tags', author=user.username) }}" >
2022-01-14 19:25:28 +01:00
{{_ ("See All") }}< / a >
2021-01-30 17:03:09 +01:00
< h2 > {{ _("Packages Without Tags") }}< / h2 >
2021-01-31 00:41:31 +01:00
< p >
2022-01-08 00:27:00 +01:00
{{ _("Labelling your packages with tags helps users find them.") }}
2021-01-31 00:41:31 +01:00
< / p >
2021-01-30 17:03:09 +01:00
< div class = "list-group mt-3 mb-5" >
{% for package in needs_tags %}
2023-06-18 23:00:24 +02:00
< a class = "list-group-item list-group-item-action" href = "{{ package.get_url('packages.view') }}" >
2021-01-30 17:03:09 +01:00
< 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() }}" />
2021-01-30 17:03:09 +01:00
2023-08-22 20:58:43 +02:00
< span class = "ps-2" >
2021-01-30 17:03:09 +01:00
{{ package.title }}
< / span >
< / a >
{% else %}
< p class = "text-muted" > {{ _("Nothing to do :)") }}< / p >
{% endfor %}
< / div >
2021-01-29 20:38:14 +01:00
< h2 class = "mt-5" > {{ _("Unadded Topics") }}< / h2 >
{% if topics_to_add %}
< p >
2022-01-08 00:27:00 +01:00
{{ _("List of your forum topics which do not have a matching package.") }}
2021-01-29 20:38:14 +01:00
< / p >
< div style = "max-height: 20em; overflow-y: auto" >
{% from "macros/topics.html" import render_topics_table %}
2024-04-03 19:30:08 +02:00
{{ render_topics_table(topics_to_add, show_author=False, current_user=current_user) }}
2021-01-29 20:38:14 +01:00
< / div >
{% else %}
2022-01-08 00:27:00 +01:00
< p class = "card-body" > {{ _("Congrats! You don't have any topics which aren't on CDB.") }}< / p >
2021-01-29 20:38:14 +01:00
{% endif %}
{% endblock %}
{% block scriptextra %}
< script >
const csrf_token = "{{ csrf_token() }}";
< / script >
{% endblock %}