Skip to content

Commit

Permalink
bug fixes - thanks @rtibbles!
Browse files Browse the repository at this point in the history
  • Loading branch information
indirectlylit committed Sep 29, 2021
1 parent d169b23 commit 9ca986a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kolibri/plugins/user_profile/kolibri_plugin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import absolute_import, print_function, unicode_literals

from kolibri.core.hooks import NavigationHook
from kolibri.core.webpack import hooks as webpack_hooks
from kolibri.plugins import KolibriPluginBase
from kolibri.plugins.hooks import register_hook

Expand All @@ -13,6 +14,11 @@ def url_slug(self):
return "profile"


@register_hook
class UserAuthAsset(webpack_hooks.WebpackBundleHook):
bundle_id = "app"


@register_hook
class ProfileNavAction(NavigationHook):
bundle_id = "user_profile_side_nav"
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% extends "kolibri/base.html" %}
{% load webpack_tags %}
{% block content %}
{% webpack_asset 'kolibri.plugins.user_profile.app' %}
{% endblock %}

0 comments on commit 9ca986a

Please sign in to comment.