Skip to content

Commit

Permalink
Update the version detail author according to plugin token
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Jan 9, 2024
1 parent 634d727 commit d6b53ac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions qgis-app/plugins/templates/plugins/version_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<h2>{% trans "Version" %}: {{ version }}</h2>
<div class="pull-right"><a href="{% url "version_download" version.plugin.package_name version.version %}" class="btn btn-primary"><i class="icon-download-alt icon-white"></i> {% trans "Download" %}</a></div>

{% if not version.created_by.is_active %}
{% if not version.created_by.is_active and not version.is_from_token %}
<div class="alert alert-error">
{% trans "The plugin author has been blocked." %}
</div>
Expand All @@ -21,7 +21,13 @@ <h2>{% trans "Version" %}: {{ version }}</h2>
<dl class="dl-horizontal">
{% if version.changelog %}<dt>{% trans "Changelog" %}</dt><dd><pre>{{ version.changelog|wordwrap:80 }}</pre></dd>{% endif %}
<dt>{% trans "Approved" %}</dt><dd>{{ version.approved|yesno }}</dd>
<dt>{% trans "Author" %}</dt><dd>{{ version.created_by }}</dd>
<dt>{% trans "Author" %}</dt><dd>
{% if version.is_from_token %}
Token {{ version.token.description|default:"" }}
{% else %}
{{ version.created_by }}
{% endif %}
</dd>
<dt>{% trans "Uploaded" %}</dt><dd>{{ version.created_on|local_timezone }}</dd>
<dt>{% trans "Minimum QGIS version" %}</dt><dd>{{ version.min_qg_version }}</dd>
<dt>{% trans "Maximum QGIS version" %}</dt><dd>{{ version.max_qg_version }}</dd>
Expand Down

0 comments on commit d6b53ac

Please sign in to comment.