diff --git a/kolibri/plugins/learn/assets/src/views/MyDownloadsSideNavEntry.vue b/kolibri/plugins/learn/assets/src/views/MyDownloadsSideNavEntry.vue new file mode 100644 index 00000000000..e3ac6429f0a --- /dev/null +++ b/kolibri/plugins/learn/assets/src/views/MyDownloadsSideNavEntry.vue @@ -0,0 +1,40 @@ + + + + diff --git a/kolibri/plugins/learn/buildConfig.js b/kolibri/plugins/learn/buildConfig.js index 7951e0fe185..bafbfe2debf 100644 --- a/kolibri/plugins/learn/buildConfig.js +++ b/kolibri/plugins/learn/buildConfig.js @@ -11,4 +11,10 @@ module.exports = [ entry: './assets/src/views/LearnSideNavEntry.vue', }, }, + { + bundle_id: 'my_downloads_side_nav', + webpack_config: { + entry: './assets/src/views/MyDownloadsSideNavEntry.vue', + }, + }, ]; diff --git a/kolibri/plugins/learn/kolibri_plugin.py b/kolibri/plugins/learn/kolibri_plugin.py index 29316ca64c4..481d6cb46ea 100644 --- a/kolibri/plugins/learn/kolibri_plugin.py +++ b/kolibri/plugins/learn/kolibri_plugin.py @@ -108,3 +108,8 @@ def node_url(self, node): + kind_slug + node.id ) + + +@register_hook +class MyDownloadsNavAction(NavigationHook): + bundle_id = "my_downloads_side_nav" diff --git a/kolibri/plugins/learn/urls.py b/kolibri/plugins/learn/urls.py index 71ebdb514f4..e083610ad06 100644 --- a/kolibri/plugins/learn/urls.py +++ b/kolibri/plugins/learn/urls.py @@ -2,4 +2,7 @@ from .views import LearnView -urlpatterns = [url(r"^$", LearnView.as_view(), name="learn")] +urlpatterns = [ + url(r"^$", LearnView.as_view(), name="learn"), + url(r"^my-downloads$", LearnView.as_view(), name="my_downloads"), +]