Make user list public

This commit is contained in:
rubenwardy
2019-06-10 00:11:57 +01:00
parent 950512c2a7
commit 2fbc44bd54
3 changed files with 7 additions and 4 deletions

View File

@@ -133,7 +133,8 @@
<a href="https://github.com/minetest/contentdb">GitHub</a> |
<a href="{{ url_for('flatpage', path='help') }}">Help</a> |
<a href="{{ url_for('flatpage', path='policy_and_guidance') }}">Policy and Guidance</a> |
<a href="{{ url_for('flatpage', path='help/reporting') }}">Report / DMCA</a>
<a href="{{ url_for('flatpage', path='help/reporting') }}">Report / DMCA</a> |
<a href="{{ url_for('user_list_page') }}">User List</a>
</footer>
<script src="/static/jquery.min.js"></script>

View File

@@ -11,8 +11,10 @@
<a href="{{ url_for('user_profile_page', username=user.username) }}">
{{ user.display_name }}
</a> -
{{ user.rank.getTitle() }} -
{{ user.packages.count() }} packages.
{{ user.rank.getTitle() }}
{% if current_user.is_authenticated %}
- {{ user.packages.count() }} packages.
{% endif %}
{% endfor %}
</ul>
{% endblock %}