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:
parent
957d99adcb
commit
77eaa3be6a
1 changed files with 15 additions and 14 deletions
|
@ -1,27 +1,28 @@
|
||||||
{% extends "users/base.html" %} {% block content %}
|
{% extends "users/base.html" %} {% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<p>
|
<div class="col-md-12">
|
||||||
This page lists your categories, and the categories you were invited to.
|
<p>
|
||||||
</p>
|
This page lists your categories, and the categories you were invited to.
|
||||||
<p>
|
</p>
|
||||||
Think of categories as a way to organize your VR projects. All content you
|
<p>
|
||||||
create will be associated with a category, and can be interacted with by
|
Think of categories as a way to organize your VR projects. All content you
|
||||||
other content within the same category.
|
create will be associated with a category, and can be interacted with
|
||||||
</p>
|
(through teleports, etc.) by other content within the same category.
|
||||||
|
</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>
|
||||||
|
|
Loading…
Reference in a new issue