Remove outdated packages section from editor work queue, as it's a tab now
This commit is contained in:
parent
29adccb6d1
commit
a088b1b0b5
|
@ -61,10 +61,6 @@ def view_editor():
|
||||||
else:
|
else:
|
||||||
abort(400)
|
abort(400)
|
||||||
|
|
||||||
topic_query = ForumTopic.query \
|
|
||||||
.filter_by(discarded=False)
|
|
||||||
|
|
||||||
|
|
||||||
total_packages = Package.query.filter_by(state=PackageState.APPROVED).count()
|
total_packages = Package.query.filter_by(state=PackageState.APPROVED).count()
|
||||||
total_to_tag = Package.query.filter_by(state=PackageState.APPROVED, tags=None).count()
|
total_to_tag = Package.query.filter_by(state=PackageState.APPROVED, tags=None).count()
|
||||||
|
|
||||||
|
@ -73,15 +69,11 @@ def view_editor():
|
||||||
.filter(MetaPackage.dependencies.any(optional=False)) \
|
.filter(MetaPackage.dependencies.any(optional=False)) \
|
||||||
.order_by(db.asc(MetaPackage.name)).count()
|
.order_by(db.asc(MetaPackage.name)).count()
|
||||||
|
|
||||||
outdated_packages = Package.query \
|
|
||||||
.filter(Package.state == PackageState.APPROVED,
|
|
||||||
Package.update_config.has(PackageUpdateConfig.outdated_at.isnot(None))).count()
|
|
||||||
|
|
||||||
return render_template("todo/editor.html", current_tab="editor",
|
return render_template("todo/editor.html", current_tab="editor",
|
||||||
packages=packages, wip_packages=wip_packages, releases=releases, screenshots=screenshots,
|
packages=packages, wip_packages=wip_packages, releases=releases, screenshots=screenshots,
|
||||||
canApproveNew=canApproveNew, canApproveRel=canApproveRel, canApproveScn=canApproveScn,
|
canApproveNew=canApproveNew, canApproveRel=canApproveRel, canApproveScn=canApproveScn,
|
||||||
total_packages=total_packages, total_to_tag=total_to_tag,
|
total_packages=total_packages, total_to_tag=total_to_tag,
|
||||||
unfulfilled_meta_packages=unfulfilled_meta_packages, outdated_packages=outdated_packages)
|
unfulfilled_meta_packages=unfulfilled_meta_packages)
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/todo/topics/")
|
@bp.route("/todo/topics/")
|
||||||
|
|
|
@ -132,20 +132,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<h2 class="mt-5">{{ _("Outdated packages") }}</h2>
|
|
||||||
|
|
||||||
{% if outdated_packages > 0 %}
|
|
||||||
<p>
|
|
||||||
{{ _("There are %(count)s potentially outdated packages packages", count=outdated_packages) }}
|
|
||||||
</p>
|
|
||||||
<a class="btn btn-primary" href="{{ url_for('todo.outdated') }}">{{ _("View Outdated") }}</a>
|
|
||||||
{% else %}
|
|
||||||
<p>
|
|
||||||
<i>{{ _("No outdated packages") }}</i>
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2 class="mt-5">WIP</h2>
|
<h2 class="mt-5">WIP</h2>
|
||||||
|
|
||||||
{% if canApproveNew and (packages or wip_packages) %}
|
{% if canApproveNew and (packages or wip_packages) %}
|
||||||
|
|
Loading…
Reference in New Issue