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

View File

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

View File

@@ -42,7 +42,7 @@
{% for package in packages %}
<tr>
<td>
<a href="{{ package.get_url("packages.view") }}">
<a href="{{ package.get_url('packages.view') }}">
{{ package.title }}
</a>
@@ -50,7 +50,7 @@
</td>
<td class="text-center">
{% 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>
</a>
{% endif %}

View File

@@ -18,7 +18,7 @@
<h2>{{ _("Unapproved Packages Needing Action") }}</h2>
<div class="list-group mt-3 mb-5">
{% 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="col-sm-2 text-muted">
<img
@@ -50,7 +50,7 @@
{% if outdated_packages %}
<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 class="btn btn-primary" type="submit" value="{{ _("Create All Releases") }}" />
<input class="btn btn-primary" type="submit" value="{{ _('Create All Releases') }}" />
</form>
{% endif %}
<h2>{{ _("Potentially Outdated Packages") }}</h2>
@@ -183,7 +183,7 @@
</p>
<div class="list-group mt-3 mb-5">
{% 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
class="img-fluid"
style="max-height: 22px; max-width: 22px;"