diff --git a/quackscape/users/templates/users/categories.html b/quackscape/users/templates/users/categories.html index df7c201..db2cc5e 100644 --- a/quackscape/users/templates/users/categories.html +++ b/quackscape/users/templates/users/categories.html @@ -1,18 +1,30 @@ -{% extends "users/base.html" %} - -{% block content %} +{% extends "users/base.html" %} {% block content %}
-

This page lists your categories, and the categories you were invited to.

-

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 other content within the same category.

+

+ This page lists your categories, and the categories you were invited to. +

+

+ 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 + other content within the same category. +

-
-

Available categories

- +
+
+

Available media

+
+
    + {% for category in categories %} +
  • + {{ category.title }} + {% if category.owner != request.user %} + (owner: {{ category.owner.email }}) + {% endif %} +
  • + {% endfor %} +
+
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/quackscape/users/views.py b/quackscape/users/views.py index 1deeb8e..87dbaeb 100644 --- a/quackscape/users/views.py +++ b/quackscape/users/views.py @@ -43,4 +43,14 @@ class CategoryView(TitleMixin, DetailView): assert category.user_has_permission(self.request.user) return category except (Category.DoesNotExist, AssertionError): - raise Http404() \ No newline at end of file + raise Http404() + + +class MediaUploadView(TitleMixin, TemplateView): + template_name = "users/media_upload.html" + title = "Upload Media" + + +class CategoryCreateView(TitleMixin, TemplateView): + template_name = "users/category_create.html" + title = "Create Category"