feat(users): enhance category page layout and

permissions

Updated the category listing page to improve visual layout by adjusting
the column widths for better readability and user experience.
Additionally, clarified the interaction possibilities between
categorized content with a slight modification in the description,
emphasizing teleports among VR projects.

Expanded the visibility of category ownership to include superusers,
ensuring they have necessary oversight across all categories, regardless
of personal ownership. This change aims to streamline project management
and enhance administrative capabilities.

These adjustments contribute to a more intuitive navigation and
management experience for users while providing superusers with better
control and oversight over category interactions and ownership.
This commit is contained in:
Kumi 2024-03-16 10:49:02 +01:00
parent 957d99adcb
commit 77eaa3be6a
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -1,27 +1,28 @@
{% extends "users/base.html" %} {% block content %} {% extends "users/base.html" %} {% block content %}
<div class="row"> <div class="row">
<div class="col-md-12">
<p> <p>
This page lists your categories, and the categories you were invited to. This page lists your categories, and the categories you were invited to.
</p> </p>
<p> <p>
Think of categories as a way to organize your VR projects. All content you Think of categories as a way to organize your VR projects. All content you
create will be associated with a category, and can be interacted with by create will be associated with a category, and can be interacted with
other content within the same category. (through teleports, etc.) by other content within the same category.
</p> </p>
</div> </div>
</div>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-12">
<div class="d-flex justify-content-between align-items-center"> <div class="d-flex justify-content-between align-items-center">
<h4>Available media</h4> <h4>Available categories</h4>
<button type="button" class="btn btn-primary">Create category</button> <button type="button" class="btn btn-primary">Create category</button>
</div> </div>
<ul> <ul>
{% for category in categories %} {% for category in categories %}
<li> <li>
<a href="/users/category/{{ category.id }}/">{{ category.title }}</a> <a href="/users/category/{{ category.id }}/">{{ category.title }}</a>
{% if category.owner != request.user %} {% if request.user.is_superuser or category.owner != request.user %}
(owner: {{ category.owner.email }}) (owner: {{ category.owner.email }}) {% endif %}
{% endif %}
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>