Fix quotes in templates
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block link %}
|
||||
<a href="{{ package.get_url("packages.view") }}">{{ package.title }}</a>
|
||||
<a href="{{ package.get_url('packages.view') }}">{{ package.title }}</a>
|
||||
{% endblock %}
|
||||
|
||||
{% 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") }}
|
||||
</a>
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block link %}
|
||||
<a href="{{ package.get_url("packages.view") }}">{{ package.title }}</a>
|
||||
<a href="{{ package.get_url('packages.view') }}">{{ package.title }}</a>
|
||||
{% endblock %}
|
||||
|
||||
{% 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") }}
|
||||
</a>
|
||||
<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="col-md-3 mb-4">
|
||||
<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="col-auto m-0 p-0">
|
||||
<img class="img-fluid user-photo img-thumbnail img-thumbnail-1"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
{% if package.update_config %}
|
||||
<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 %}
|
||||
{{ _("You have automatic releases enabled.") }}
|
||||
{% else %}
|
||||
@@ -20,12 +20,12 @@
|
||||
{% else %}
|
||||
<p class="alert alert-info mb-4">
|
||||
{% 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>
|
||||
|
||||
{{ _("You can create releases automatically when you push commits or tags to your repository.") }}
|
||||
{% 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>
|
||||
|
||||
{{ _("Using Git would allow you to create releases automatically when you push code or tags.") }}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% 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") }}
|
||||
</a>
|
||||
<h1>{{ self.title() }}</h1>
|
||||
@@ -30,13 +30,13 @@
|
||||
<div class="col-md-6 mt-5">
|
||||
<h3 class="mt-0">{{ _("Automatically (Recommended)") }}</h3>
|
||||
<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") }}
|
||||
</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") }}
|
||||
</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") }}#}
|
||||
{# </a>#}
|
||||
</p>
|
||||
@@ -45,10 +45,10 @@
|
||||
<div class="col-md-6 mt-5">
|
||||
<h3 class="mt-0">{{ _("Manually") }}</h3>
|
||||
<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") }}
|
||||
</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") }}
|
||||
</a>
|
||||
</p>
|
||||
@@ -65,13 +65,13 @@
|
||||
</p>
|
||||
|
||||
<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") }}
|
||||
</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") }}
|
||||
</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") }}
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@@ -8,23 +8,23 @@
|
||||
{% if package.check_perm(current_user, "MAKE_RELEASE") %}
|
||||
<p class="float-right">
|
||||
{% 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>
|
||||
{{ _("Update settings") }}
|
||||
</a>
|
||||
{% 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>
|
||||
{{ _("Set up automatic releases") }}
|
||||
</a>
|
||||
{% 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>
|
||||
{{ _("Bulk update") }}
|
||||
</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>
|
||||
{{ _("Create") }}
|
||||
</a>
|
||||
|
||||
@@ -31,7 +31,7 @@ Remove {{ package.title }}
|
||||
</small>
|
||||
</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" />
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block link %}
|
||||
<a href="{{ package.get_url("packages.view") }}">{{ package.title }}</a>
|
||||
<a href="{{ package.get_url('packages.view') }}">{{ package.title }}</a>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block link %}
|
||||
<a href="{{ package.get_url("packages.view") }}">{{ package.title }}</a>
|
||||
<a href="{{ package.get_url('packages.view') }}">{{ package.title }}</a>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% 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>
|
||||
|
||||
{% if packages_modnames %}
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
|
||||
<div class="info-row row" style="margin-top: 2rem;">
|
||||
<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">
|
||||
<span class="count">
|
||||
{{ package.author.display_name }}
|
||||
@@ -191,11 +191,11 @@
|
||||
<span class="count">{{ package.downloads }}</span>
|
||||
</a>
|
||||
{% 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>
|
||||
<span class="count">{{ threads | length }}</span>
|
||||
</a>
|
||||
<a class="btn" href="#reviews" title="{{ _("Reviews") }}">
|
||||
<a class="btn" href="#reviews" title="{{ _('Reviews') }}">
|
||||
<i class="fas fa-star-half-alt"></i>
|
||||
<span class="count">
|
||||
+{{ package.reviews | selectattr("rating", "equalto", 5) | list | length }}
|
||||
@@ -303,7 +303,7 @@
|
||||
{% if current_user.is_authenticated %}
|
||||
{% if has_review %}
|
||||
<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") }}
|
||||
</a>
|
||||
</p>
|
||||
@@ -366,7 +366,7 @@
|
||||
<i class="fas fa-plus mr-1"></i>
|
||||
{{ _("Release") }}
|
||||
</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>
|
||||
{{ _("Update settings") }}
|
||||
</a>
|
||||
@@ -404,7 +404,7 @@
|
||||
{% for dep in package.get_sorted_hard_dependencies() %}
|
||||
{%- if dep.package %}
|
||||
<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=dep.package.title, display_name=dep.package.author.display_name) }}
|
||||
</a>
|
||||
@@ -428,7 +428,7 @@
|
||||
{% for dep in optional_deps %}
|
||||
{%- if dep.package %}
|
||||
<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=dep.package.title, display_name=dep.package.author.display_name) }}
|
||||
{% elif dep.meta_package %}
|
||||
@@ -570,7 +570,7 @@
|
||||
{% endfor %}
|
||||
|
||||
{% 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 class="btn btn-sm btn-link p-0" type="submit" value="{{ _('Remove myself') }}" />
|
||||
</form>
|
||||
@@ -587,7 +587,7 @@
|
||||
|
||||
<h3>
|
||||
{% 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 %}
|
||||
{{ _("Releases") }}
|
||||
</h3>
|
||||
@@ -598,7 +598,7 @@
|
||||
{% else %}
|
||||
{{ render_releases_download(releases, package, current_user) }}
|
||||
{% 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") }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user