mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-24 19:02:40 +01:00
Move statistics link on package page
This commit is contained in:
@ -32,7 +32,7 @@
|
|||||||
{% block download_btn %}
|
{% block download_btn %}
|
||||||
{% if release %}
|
{% if release %}
|
||||||
<a class="btn btn-block btn-download" rel="nofollow" download="{{ release.getDownloadFileName() }}"
|
<a class="btn btn-block btn-download" rel="nofollow" download="{{ release.getDownloadFileName() }}"
|
||||||
href="{{ package.getURL('packages.download') }}">
|
href="{{ release.getDownloadURL() }}">
|
||||||
<div>
|
<div>
|
||||||
{{ _("Download") }}
|
{{ _("Download") }}
|
||||||
</div>
|
</div>
|
||||||
@ -164,7 +164,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% if release %}
|
{% if release %}
|
||||||
<a class="btn" rel="nofollow" href="{{ package.getURL('packages.stats') }}" title="{{ _('Statistics') }}">
|
<a class="btn" rel="nofollow" href="{{ release.getDownloadURL() }}" title="{{ _('Downloads') }}"
|
||||||
|
download="{{ release.getDownloadFileName() }}">
|
||||||
<i class="fas fa-download"></i>
|
<i class="fas fa-download"></i>
|
||||||
<span class="count">{{ package.downloads }}</span>
|
<span class="count">{{ package.downloads }}</span>
|
||||||
</a>
|
</a>
|
||||||
@ -205,6 +206,10 @@
|
|||||||
<span class="count">{{ _("Issue Tracker") }}</span>
|
<span class="count">{{ _("Issue Tracker") }}</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<a class="btn" href="{{ package.getURL('packages.stats') }}">
|
||||||
|
<i class="fas fa-chart-line"></i>
|
||||||
|
<span class="count">{{ _("Statistics") }}</span>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -543,19 +548,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="mt-3">
|
<p class="mt-3">
|
||||||
<a href="{{ package.getURL('packages.stats') }}">
|
|
||||||
<i class="fas fa-chart-line mr-1"></i>
|
|
||||||
{{ _("Statistics") }}
|
|
||||||
</a>
|
|
||||||
{% if package.approved and current_user != package.author %}
|
{% if package.approved and current_user != package.author %}
|
||||||
|
|
|
||||||
<a href="{{ url_for('report.report', url=url_current()) }}">
|
<a href="{{ url_for('report.report', url=url_current()) }}">
|
||||||
<i class="fas fa-flag mr-1"></i>
|
<i class="fas fa-flag mr-1"></i>
|
||||||
{{ _("Report") }}
|
{{ _("Report") }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if package.checkPerm(current_user, "EDIT_PACKAGE") or package.checkPerm(current_user, "APPROVE_NEW") %}
|
{% if package.checkPerm(current_user, "EDIT_PACKAGE") or package.checkPerm(current_user, "APPROVE_NEW") %}
|
||||||
|
{% if package.approved and current_user != package.author %}
|
||||||
|
|
|
|
||||||
|
{% endif %}
|
||||||
<a href="{{ package.getURL('packages.audit') }}">
|
<a href="{{ package.getURL('packages.audit') }}">
|
||||||
{{ _("See audit log") }}
|
{{ _("See audit log") }}
|
||||||
</a>
|
</a>
|
||||||
|
Reference in New Issue
Block a user