Fix quotes in templates

This commit is contained in:
rubenwardy 2023-06-18 22:00:24 +01:00
parent 8585357942
commit e8b14709e6
20 changed files with 54 additions and 54 deletions

@ -36,7 +36,7 @@
{% set cover_image = package.get_cover_image_url() %} {% set cover_image = package.get_cover_image_url() %}
{% set tags = package.tags | sort(attribute="views", reverse=True) %} {% set tags = package.tags | sort(attribute="views", reverse=True) %}
<div class="carousel-item {% if loop.index == 1 %}active{% endif %}"> <div class="carousel-item {% if loop.index == 1 %}active{% endif %}">
<a href="{{ package.get_url("packages.view") }}"> <a href="{{ package.get_url('packages.view') }}">
<div class="embed-responsive embed-responsive-16by9"> <div class="embed-responsive embed-responsive-16by9">
<img class="embed-responsive-item" src="{{ cover_image }}" <img class="embed-responsive-item" src="{{ cover_image }}"
alt="{{ _('%(title)s by %(author)s', title=package.title, author=package.author.display_name) }}"> alt="{{ _('%(title)s by %(author)s', title=package.title, author=package.author.display_name) }}">

@ -1,5 +1,5 @@
{% macro render_pkgtile(package, show_author) -%} {% macro render_pkgtile(package, show_author) -%}
<li class="packagetile flex-fill"><a href="{{ package.get_url("packages.view") }}" <li class="packagetile flex-fill"><a href="{{ package.get_url('packages.view') }}"
style="background-image: url({{ package.get_thumb_or_placeholder(2) }});"> style="background-image: url({{ package.get_thumb_or_placeholder(2) }});">
<div class="packagegridscrub"></div> <div class="packagegridscrub"></div>
<div class="packagegridinfo"> <div class="packagegridinfo">

@ -89,7 +89,7 @@
{{ _("created %(date)s", date=rel.releaseDate | date) }}. {{ _("created %(date)s", date=rel.releaseDate | date) }}.
</small> </small>
{% if (package.check_perm(current_user, "MAKE_RELEASE") or rel.check_perm(current_user, "APPROVE_RELEASE")) and rel.task_id %} {% if (package.check_perm(current_user, "MAKE_RELEASE") or rel.check_perm(current_user, "APPROVE_RELEASE")) and rel.task_id %}
<a href="{{ url_for('tasks.check', id=rel.task_id, r=package.get_url("packages.view")) }}"> <a href="{{ url_for('tasks.check', id=rel.task_id, r=package.get_url('packages.view')) }}">
{{ _("Importing...") }} {{ _("Importing...") }}
</a> </a>
{% elif not rel.approved %} {% elif not rel.approved %}

@ -58,7 +58,7 @@
<div class="card-body markdown"> <div class="card-body markdown">
{% if current_user == review.author %} {% if current_user == review.author %}
<a class="btn btn-primary btn-sm ml-1 float-right" <a class="btn btn-primary btn-sm ml-1 float-right"
href="{{ review.package.get_url("packages.review") }}"> href="{{ review.package.get_url('packages.review') }}">
<i class="fas fa-pen"></i> <i class="fas fa-pen"></i>
</a> </a>
{% endif %} {% endif %}
@ -71,7 +71,7 @@
<div class="btn-toolbar mt-2 mb-0"> <div class="btn-toolbar mt-2 mb-0">
{% if show_package_link %} {% if show_package_link %}
<a class="btn btn-primary mr-1" href="{{ review.package.get_url("packages.view") }}"> <a class="btn btn-primary mr-1" href="{{ review.package.get_url('packages.view') }}">
{{ _("%(title)s by %(author)s", {{ _("%(title)s by %(author)s",
title="<b>" | safe + review.package.title + "</b>" | safe, title="<b>" | safe + review.package.title + "</b>" | safe,
author=review.package.author.display_name) }} author=review.package.author.display_name) }}
@ -105,7 +105,7 @@
<div class="card-header"> <div class="card-header">
{{ _("Review") }} {{ _("Review") }}
</div> </div>
<form method="post" action="{{ package.get_url("packages.review") }}" class="card-body"> <form method="post" action="{{ package.get_url('packages.review') }}" class="card-body">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<p> <p>
{{ _("Do you recommend this %(type)s?", type=package.type.text | lower) }} {{ _("Do you recommend this %(type)s?", type=package.type.text | lower) }}
@ -148,7 +148,7 @@
<div class="card-header"> <div class="card-header">
{{ _("Review") }} {{ _("Review") }}
</div> </div>
<form method="post" action="{{ package.get_url("packages.review") }}" class="card-body"> <form method="post" action="{{ package.get_url('packages.review') }}" class="card-body">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<p> <p>
{{ _("Do you recommend this %(type)s?", type=package.type.text | lower) }} {{ _("Do you recommend this %(type)s?", type=package.type.text | lower) }}

@ -4,7 +4,7 @@
{% set config = package.update_config %} {% set config = package.update_config %}
<li class="list-group-item"> <li class="list-group-item">
<div class="row"> <div class="row">
<a class="col-sm-auto text-muted" style="min-width: 200px;" href="{{ package.get_url("packages.view") }}"> <a class="col-sm-auto text-muted" style="min-width: 200px;" href="{{ package.get_url('packages.view') }}">
<img <img
class="img-fluid" class="img-fluid"
style="max-height: 22px; max-width: 22px;" style="max-height: 22px; max-width: 22px;"
@ -43,7 +43,7 @@
</a> </a>
{% if package.check_perm(current_user, "MAKE_RELEASE") %} {% if package.check_perm(current_user, "MAKE_RELEASE") %}
<a class="btn btn-sm btn-secondary" href="{{ package.get_url("packages.update_config") }}"> <a class="btn btn-sm btn-secondary" href="{{ package.get_url('packages.update_config') }}">
<i class="fas fa-cog mr-1"></i> <i class="fas fa-cog mr-1"></i>
{{ _("Update settings") }} {{ _("Update settings") }}
</a> </a>

@ -5,11 +5,11 @@
{% endblock %} {% endblock %}
{% block link %} {% block link %}
<a href="{{ package.get_url("packages.view") }}">{{ package.title }}</a> <a href="{{ package.get_url('packages.view') }}">{{ package.title }}</a>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<a class="btn btn-secondary" href="{{ package.get_url("packages.alias_list") }}"> <a class="btn btn-secondary" href="{{ package.get_url('packages.alias_list') }}">
{{ _("Back to Aliases") }} {{ _("Back to Aliases") }}
</a> </a>

@ -5,11 +5,11 @@
{% endblock %} {% endblock %}
{% block link %} {% block link %}
<a href="{{ package.get_url("packages.view") }}">{{ package.title }}</a> <a href="{{ package.get_url('packages.view') }}">{{ package.title }}</a>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<a class="btn btn-primary float-right" href="{{ package.get_url("packages.alias_create_edit") }}"> <a class="btn btn-primary float-right" href="{{ package.get_url('packages.alias_create_edit') }}">
{{ _("Create") }} {{ _("Create") }}
</a> </a>
<h1>{{ _("Aliases for %(title)s by %(author)s", title=self.link(), author=package.author.display_name) }}</h1> <h1>{{ _("Aliases for %(title)s by %(author)s", title=self.link(), author=package.author.display_name) }}</h1>

@ -6,7 +6,7 @@
<div class="row"> <div class="row">
<div class="col-md-3 mb-4"> <div class="col-md-3 mb-4">
<div class="list-group"> <div class="list-group">
<a class="list-group-item list-group-item-action" href="{{ package.get_url("packages.view") }}"> <a class="list-group-item list-group-item-action" href="{{ package.get_url('packages.view') }}">
<span class="row m-0 p-0"> <span class="row m-0 p-0">
<span class="col-auto m-0 p-0"> <span class="col-auto m-0 p-0">
<img class="img-fluid user-photo img-thumbnail img-thumbnail-1" <img class="img-fluid user-photo img-thumbnail img-thumbnail-1"

@ -9,7 +9,7 @@
{% if package.update_config %} {% if package.update_config %}
<p class="alert alert-secondary mb-4"> <p class="alert alert-secondary mb-4">
<a class="float-right btn btn-sm btn-secondary" href="{{ package.get_url("packages.update_config") }}">{{ _("Settings") }}</a> <a class="float-right btn btn-sm btn-secondary" href="{{ package.get_url('packages.update_config') }}">{{ _("Settings") }}</a>
{% if package.update_config.make_release %} {% if package.update_config.make_release %}
{{ _("You have automatic releases enabled.") }} {{ _("You have automatic releases enabled.") }}
{% else %} {% else %}
@ -20,12 +20,12 @@
{% else %} {% else %}
<p class="alert alert-info mb-4"> <p class="alert alert-info mb-4">
{% if package.repo %} {% if package.repo %}
<a class="float-right btn btn-sm btn-info" href="{{ package.get_url("packages.setup_releases") }}">{{ _("Set up") }}</a> <a class="float-right btn btn-sm btn-info" href="{{ package.get_url('packages.setup_releases') }}">{{ _("Set up") }}</a>
<i class="fas fa-info mr-2"></i> <i class="fas fa-info mr-2"></i>
{{ _("You can create releases automatically when you push commits or tags to your repository.") }} {{ _("You can create releases automatically when you push commits or tags to your repository.") }}
{% else %} {% else %}
<a class="float-right btn btn-sm btn-info" href="{{ package.get_url("packages.create_edit") }}">{{ _("Add Git repo") }}</a> <a class="float-right btn btn-sm btn-info" href="{{ package.get_url('packages.create_edit') }}">{{ _("Add Git repo") }}</a>
<i class="fas fa-info mr-2"></i> <i class="fas fa-info mr-2"></i>
{{ _("Using Git would allow you to create releases automatically when you push code or tags.") }} {{ _("Using Git would allow you to create releases automatically when you push code or tags.") }}

@ -5,7 +5,7 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<a class="btn btn-secondary float-right" href="{{ package.get_url("packages.view") }}"> <a class="btn btn-secondary float-right" href="{{ package.get_url('packages.view') }}">
{{ _("Later") }} {{ _("Later") }}
</a> </a>
<h1>{{ self.title() }}</h1> <h1>{{ self.title() }}</h1>
@ -30,13 +30,13 @@
<div class="col-md-6 mt-5"> <div class="col-md-6 mt-5">
<h3 class="mt-0">{{ _("Automatically (Recommended)") }}</h3> <h3 class="mt-0">{{ _("Automatically (Recommended)") }}</h3>
<p> <p>
<a class="btn btn-primary" href="{{ package.get_url("packages.update_config", trigger="commit") }}"> <a class="btn btn-primary" href="{{ package.get_url('packages.update_config', trigger='commit') }}">
{{ _("Rolling Release") }} {{ _("Rolling Release") }}
</a> </a>
<a class="btn btn-primary ml-2" href="{{ package.get_url("packages.update_config", trigger="tag") }}"> <a class="btn btn-primary ml-2" href="{{ package.get_url('packages.update_config', trigger='tag') }}">
{{ _("On Git Tag") }} {{ _("On Git Tag") }}
</a> </a>
{# <a class="btn btn-secondary ml-2" href="{{ package.get_url("packages.update_config") }}">#} {# <a class="btn btn-secondary ml-2" href="{{ package.get_url('packages.update_config') }}">#}
{# {{ _("Advanced") }}#} {# {{ _("Advanced") }}#}
{# </a>#} {# </a>#}
</p> </p>
@ -45,10 +45,10 @@
<div class="col-md-6 mt-5"> <div class="col-md-6 mt-5">
<h3 class="mt-0">{{ _("Manually") }}</h3> <h3 class="mt-0">{{ _("Manually") }}</h3>
<p> <p>
<a class="btn btn-secondary" href="{{ package.get_url("packages.update_config", action="notification") }}"> <a class="btn btn-secondary" href="{{ package.get_url('packages.update_config', action='notification') }}">
{{ _("With reminders") }} {{ _("With reminders") }}
</a> </a>
<a class="btn btn-secondary ml-2" href="{{ package.get_url("packages.create_release") }}"> <a class="btn btn-secondary ml-2" href="{{ package.get_url('packages.create_release') }}">
{{ _("No reminders") }} {{ _("No reminders") }}
</a> </a>
</p> </p>
@ -65,13 +65,13 @@
</p> </p>
<p class="mt-5"> <p class="mt-5">
<a class="btn btn-primary" href="{{ package.get_url("packages.create_edit") }}"> <a class="btn btn-primary" href="{{ package.get_url('packages.create_edit') }}">
{{ _("Add Git repo") }} {{ _("Add Git repo") }}
</a> </a>
<a class="btn btn-secondary ml-2" href="{{ package.get_url("packages.create_release") }}"> <a class="btn btn-secondary ml-2" href="{{ package.get_url('packages.create_release') }}">
{{ _("Create releases manually") }} {{ _("Create releases manually") }}
</a> </a>
<a class="btn btn-secondary ml-2" href="{{ package.get_url("packages.view") }}"> <a class="btn btn-secondary ml-2" href="{{ package.get_url('packages.view') }}">
{{ _("Later") }} {{ _("Later") }}
</a> </a>
</p> </p>

@ -8,23 +8,23 @@
{% if package.check_perm(current_user, "MAKE_RELEASE") %} {% if package.check_perm(current_user, "MAKE_RELEASE") %}
<p class="float-right"> <p class="float-right">
{% if package.update_config %} {% if package.update_config %}
<a class="btn btn-secondary" href="{{ package.get_url("packages.update_config") }}"> <a class="btn btn-secondary" href="{{ package.get_url('packages.update_config') }}">
<i class="fas fa-cog mr-1"></i> <i class="fas fa-cog mr-1"></i>
{{ _("Update settings") }} {{ _("Update settings") }}
</a> </a>
{% elif package.repo %} {% elif package.repo %}
<a class="btn btn-secondary" href="{{ package.get_url("packages.setup_releases") }}"> <a class="btn btn-secondary" href="{{ package.get_url('packages.setup_releases') }}">
<i class="fas fa-hat-wizard mr-1"></i> <i class="fas fa-hat-wizard mr-1"></i>
{{ _("Set up automatic releases") }} {{ _("Set up automatic releases") }}
</a> </a>
{% endif %} {% endif %}
<a class="btn btn-secondary ml-1" href="{{ package.get_url("packages.bulk_change_release") }}"> <a class="btn btn-secondary ml-1" href="{{ package.get_url('packages.bulk_change_release') }}">
<i class="fas fa-wrench mr-1"></i> <i class="fas fa-wrench mr-1"></i>
{{ _("Bulk update") }} {{ _("Bulk update") }}
</a> </a>
<a class="btn btn-primary ml-1" href="{{ package.get_url("packages.create_release") }}"> <a class="btn btn-primary ml-1" href="{{ package.get_url('packages.create_release') }}">
<i class="fas fa-plus mr-1"></i> <i class="fas fa-plus mr-1"></i>
{{ _("Create") }} {{ _("Create") }}
</a> </a>

@ -31,7 +31,7 @@ Remove {{ package.title }}
</small> </small>
</div> </div>
<a class="btn btn-secondary float-right" href="{{ package.get_url("packages.view") }}">{{ _("Cancel") }}</a> <a class="btn btn-secondary float-right" href="{{ package.get_url('packages.view') }}">{{ _("Cancel") }}</a>
<input type="submit" name="delete" value="{{ _('Remove') }}" class="btn btn-danger mr-2" /> <input type="submit" name="delete" value="{{ _('Remove') }}" class="btn btn-danger mr-2" />

@ -5,7 +5,7 @@
{% endblock %} {% endblock %}
{% block link %} {% block link %}
<a href="{{ package.get_url("packages.view") }}">{{ package.title }}</a> <a href="{{ package.get_url('packages.view') }}">{{ package.title }}</a>
{% endblock %} {% endblock %}
{% block content %} {% block content %}

@ -5,7 +5,7 @@
{% endblock %} {% endblock %}
{% block link %} {% block link %}
<a href="{{ package.get_url("packages.view") }}">{{ package.title }}</a> <a href="{{ package.get_url('packages.view') }}">{{ package.title }}</a>
{% endblock %} {% endblock %}

@ -5,7 +5,7 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<h1><a href="{{ package.get_url("packages.view") }}">{{ package.title }}</a></h1> <h1><a href="{{ package.get_url('packages.view') }}">{{ package.title }}</a></h1>
<h2>{{ self.title() }}</h2> <h2>{{ self.title() }}</h2>
{% if packages_modnames %} {% if packages_modnames %}

@ -178,7 +178,7 @@
<div class="info-row row" style="margin-top: 2rem;"> <div class="info-row row" style="margin-top: 2rem;">
<div class="btn-group-horizontal col"> <div class="btn-group-horizontal col">
<a class="btn" href="{{ url_for('users.profile', username=package.author.username) }}" title="{{ _("Author") }}"> <a class="btn" href="{{ url_for('users.profile', username=package.author.username) }}" title="{{ _('Author') }}">
<img src="{{ package.author.get_profile_pic_url() }}" style="max-height: 1em; filter: none"> <img src="{{ package.author.get_profile_pic_url() }}" style="max-height: 1em; filter: none">
<span class="count"> <span class="count">
{{ package.author.display_name }} {{ package.author.display_name }}
@ -191,11 +191,11 @@
<span class="count">{{ package.downloads }}</span> <span class="count">{{ package.downloads }}</span>
</a> </a>
{% endif %} {% endif %}
<a class="btn" href="{{ url_for('threads.list_all', pid=package.id) }}" title="{{ _("Threads") }}"> <a class="btn" href="{{ url_for('threads.list_all', pid=package.id) }}" title="{{ _('Threads') }}">
<i class="fas fa-comment-alt"></i> <i class="fas fa-comment-alt"></i>
<span class="count">{{ threads | length }}</span> <span class="count">{{ threads | length }}</span>
</a> </a>
<a class="btn" href="#reviews" title="{{ _("Reviews") }}"> <a class="btn" href="#reviews" title="{{ _('Reviews') }}">
<i class="fas fa-star-half-alt"></i> <i class="fas fa-star-half-alt"></i>
<span class="count"> <span class="count">
+{{ package.reviews | selectattr("rating", "equalto", 5) | list | length }} +{{ package.reviews | selectattr("rating", "equalto", 5) | list | length }}
@ -303,7 +303,7 @@
{% if current_user.is_authenticated %} {% if current_user.is_authenticated %}
{% if has_review %} {% if has_review %}
<p> <p>
<a class="btn btn-primary" href="{{ package.get_url("packages.review") }}"> <a class="btn btn-primary" href="{{ package.get_url('packages.review') }}">
{{ _("Edit Review") }} {{ _("Edit Review") }}
</a> </a>
</p> </p>
@ -366,7 +366,7 @@
<i class="fas fa-plus mr-1"></i> <i class="fas fa-plus mr-1"></i>
{{ _("Release") }} {{ _("Release") }}
</a> </a>
<a class="btn btn-warning" href="{{ package.get_url("packages.update_config") }}"> <a class="btn btn-warning" href="{{ package.get_url('packages.update_config') }}">
<i class="fas fa-cog mr-1"></i> <i class="fas fa-cog mr-1"></i>
{{ _("Update settings") }} {{ _("Update settings") }}
</a> </a>
@ -404,7 +404,7 @@
{% for dep in package.get_sorted_hard_dependencies() %} {% for dep in package.get_sorted_hard_dependencies() %}
{%- if dep.package %} {%- if dep.package %}
<a class="badge badge-primary" <a class="badge badge-primary"
href="{{ dep.package.get_url("packages.view") }}"> href="{{ dep.package.get_url('packages.view') }}">
{{ _("%(title)s by %(display_name)s", {{ _("%(title)s by %(display_name)s",
title=dep.package.title, display_name=dep.package.author.display_name) }} title=dep.package.title, display_name=dep.package.author.display_name) }}
</a> </a>
@ -428,7 +428,7 @@
{% for dep in optional_deps %} {% for dep in optional_deps %}
{%- if dep.package %} {%- if dep.package %}
<a class="badge badge-secondary" <a class="badge badge-secondary"
href="{{ dep.package.get_url("packages.view") }}"> href="{{ dep.package.get_url('packages.view') }}">
{{ _("%(title)s by %(display_name)s", {{ _("%(title)s by %(display_name)s",
title=dep.package.title, display_name=dep.package.author.display_name) }} title=dep.package.title, display_name=dep.package.author.display_name) }}
{% elif dep.meta_package %} {% elif dep.meta_package %}
@ -570,7 +570,7 @@
{% endfor %} {% endfor %}
{% if current_user in package.maintainers and current_user != package.author %} {% if current_user in package.maintainers and current_user != package.author %}
<form class="mt-2" method="post" action="{{ package.get_url("packages.remove_self_maintainers") }}"> <form class="mt-2" method="post" action="{{ package.get_url('packages.remove_self_maintainers') }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<input class="btn btn-sm btn-link p-0" type="submit" value="{{ _('Remove myself') }}" /> <input class="btn btn-sm btn-link p-0" type="submit" value="{{ _('Remove myself') }}" />
</form> </form>
@ -587,7 +587,7 @@
<h3> <h3>
{% if package.check_perm(current_user, "MAKE_RELEASE") %} {% if package.check_perm(current_user, "MAKE_RELEASE") %}
<a class="btn btn-primary btn-sm float-right" href="{{ package.get_url("packages.create_release") }}"><i class="fas fa-plus"></i></a> <a class="btn btn-primary btn-sm float-right" href="{{ package.get_url('packages.create_release') }}"><i class="fas fa-plus"></i></a>
{% endif %} {% endif %}
{{ _("Releases") }} {{ _("Releases") }}
</h3> </h3>
@ -598,7 +598,7 @@
{% else %} {% else %}
{{ render_releases_download(releases, package, current_user) }} {{ render_releases_download(releases, package, current_user) }}
{% endif %} {% endif %}
<a class="list-group-item list-group-item-action text-center py-1 text-muted" href="{{ package.get_url("packages.list_releases") }}"> <a class="list-group-item list-group-item-action text-center py-1 text-muted" href="{{ package.get_url('packages.list_releases') }}">
{{ _("More") }} {{ _("More") }}
</a> </a>
</div> </div>

@ -64,7 +64,7 @@
{% if current_user == thread.author and thread.review %} {% if current_user == thread.author and thread.review %}
<a class="btn btn-primary ml-1 float-right mr-2" <a class="btn btn-primary ml-1 float-right mr-2"
href="{{ thread.review.package.get_url("packages.review") }}"> href="{{ thread.review.package.get_url('packages.review') }}">
<i class="fas fa-pen"></i> <i class="fas fa-pen"></i>
{{ _("Edit Review") }} {{ _("Edit Review") }}
</a> </a>

@ -46,7 +46,7 @@
<h3 class="card-header">{{ _("Packages") }}</h3> <h3 class="card-header">{{ _("Packages") }}</h3>
<div class="list-group list-group-flush"> <div class="list-group list-group-flush">
{% for p in packages %} {% for p in packages %}
<a href="{{ p.get_url("packages.view") }}" class="list-group-item list-group-item-action"> <a href="{{ p.get_url('packages.view') }}" class="list-group-item list-group-item-action">
<span class="float-right" title="Created {{ p.created_at | datetime }}"> <span class="float-right" title="Created {{ p.created_at | datetime }}">
<small> <small>
{{ p.created_at | timedelta }} ago {{ p.created_at | timedelta }} ago
@ -81,7 +81,7 @@
{% endif %} {% endif %}
<a href="{{ r.get_edit_url() }}">{{ r.title }}</a> <a href="{{ r.get_edit_url() }}">{{ r.title }}</a>
on on
<a href="{{ r.package.get_url("packages.view") }}"> <a href="{{ r.package.get_url('packages.view') }}">
{{ _("%(title)s by %(display_name)s", {{ _("%(title)s by %(display_name)s",
title=r.package.title, display_name=r.package.author.display_name) }} title=r.package.title, display_name=r.package.author.display_name) }}
</a> </a>
@ -107,7 +107,7 @@
<h3 class="card-header">{{ _("License Needed") }}</h3> <h3 class="card-header">{{ _("License Needed") }}</h3>
<div class="list-group list-group-flush"> <div class="list-group list-group-flush">
{% for p in license_needed %} {% for p in license_needed %}
<a href="{{ p.get_url("packages.view") }}" class="list-group-item list-group-item-action"> <a href="{{ p.get_url('packages.view') }}" class="list-group-item list-group-item-action">
<span class="float-right" title="Created {{ p.created_at | datetime }}"> <span class="float-right" title="Created {{ p.created_at | datetime }}">
<small> <small>
{{ p.created_at | timedelta }} ago {{ p.created_at | timedelta }} ago
@ -164,7 +164,7 @@
<h3 class="card-header">WIP Packages</h3> <h3 class="card-header">WIP Packages</h3>
<div class="list-group list-group-flush" style="max-height: 300px; overflow: hidden auto;"> <div class="list-group list-group-flush" style="max-height: 300px; overflow: hidden auto;">
{% for p in wip_packages %} {% for p in wip_packages %}
<a href="{{ p.get_url("packages.view") }}" class="list-group-item list-group-item-action"> <a href="{{ p.get_url('packages.view') }}" class="list-group-item list-group-item-action">
<span class="float-right" title="Created {{ p.created_at | datetime }}"> <span class="float-right" title="Created {{ p.created_at | datetime }}">
<small> <small>
{{ p.created_at | timedelta }} ago {{ p.created_at | timedelta }} ago

@ -42,7 +42,7 @@
{% for package in packages %} {% for package in packages %}
<tr> <tr>
<td> <td>
<a href="{{ package.get_url("packages.view") }}"> <a href="{{ package.get_url('packages.view') }}">
{{ package.title }} {{ package.title }}
</a> </a>
@ -50,7 +50,7 @@
</td> </td>
<td class="text-center"> <td class="text-center">
{% if package.check_perm(current_user, "EDIT_PACKAGE") %} {% if package.check_perm(current_user, "EDIT_PACKAGE") %}
<a class="btn btn-link btn-sm py-0" href="{{ package.get_url("packages.create_edit") }}"> <a class="btn btn-link btn-sm py-0" href="{{ package.get_url('packages.create_edit') }}">
<i class="fas fa-pen"></i> <i class="fas fa-pen"></i>
</a> </a>
{% endif %} {% endif %}

@ -18,7 +18,7 @@
<h2>{{ _("Unapproved Packages Needing Action") }}</h2> <h2>{{ _("Unapproved Packages Needing Action") }}</h2>
<div class="list-group mt-3 mb-5"> <div class="list-group mt-3 mb-5">
{% for package in unapproved_packages %} {% for package in unapproved_packages %}
<a class="list-group-item list-group-item-action" href="{{ package.get_url("packages.view") }}"> <a class="list-group-item list-group-item-action" href="{{ package.get_url('packages.view') }}">
<div class="row"> <div class="row">
<div class="col-sm-2 text-muted"> <div class="col-sm-2 text-muted">
<img <img
@ -50,7 +50,7 @@
{% if outdated_packages %} {% if outdated_packages %}
<form class="float-right mr-2" method="post" action="{{ url_for('todo.apply_all_updates', username=user.username) }}"> <form class="float-right mr-2" method="post" action="{{ url_for('todo.apply_all_updates', username=user.username) }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<input class="btn btn-primary" type="submit" value="{{ _("Create All Releases") }}" /> <input class="btn btn-primary" type="submit" value="{{ _('Create All Releases') }}" />
</form> </form>
{% endif %} {% endif %}
<h2>{{ _("Potentially Outdated Packages") }}</h2> <h2>{{ _("Potentially Outdated Packages") }}</h2>
@ -183,7 +183,7 @@
</p> </p>
<div class="list-group mt-3 mb-5"> <div class="list-group mt-3 mb-5">
{% for package in needs_tags %} {% for package in needs_tags %}
<a class="list-group-item list-group-item-action" href="{{ package.get_url("packages.view") }}"> <a class="list-group-item list-group-item-action" href="{{ package.get_url('packages.view') }}">
<img <img
class="img-fluid" class="img-fluid"
style="max-height: 22px; max-width: 22px;" style="max-height: 22px; max-width: 22px;"