feat: added navigation
diff --git a/erpnext/www/lms/course.html b/erpnext/www/lms/course.html
index 34158c8..1182eb9 100644
--- a/erpnext/www/lms/course.html
+++ b/erpnext/www/lms/course.html
@@ -85,7 +85,7 @@
{% block content %}
<section class="section ">
- {{ hero(course.course_name, course.course_intro, has_access) }}
+ {{ hero(course.course_name, course.course_intro, has_access, {'name': 'Program', 'url': '/lms/program?program=' + program }) }}
<div class='container'>
<div class="row mt-5">
{% for topic in topics %}
diff --git a/erpnext/www/lms/macros/hero.html b/erpnext/www/lms/macros/hero.html
index 20e9d05..dfee93f 100644
--- a/erpnext/www/lms/macros/hero.html
+++ b/erpnext/www/lms/macros/hero.html
@@ -1,6 +1,11 @@
-{% macro hero(title, description, has_access) %}
+{% macro hero(title, description, has_access, back) %}
<div class='container pb-5'>
- <h1>{{ title }} </h1>
+ <div class="mb-3">
+ <a href="{{ back.url }}" class="text-muted">
+ <i class="fa fa-chevron-left"></i> Back to {{ back.name }}
+ </a>
+ </div>
+ <h1>{{ title }}</h1>
<p class='lead' style="max-width: 100%;">{{ description }}</p>
<p class="mt-4">
{% if frappe.session.user == 'Guest' %}
diff --git a/erpnext/www/lms/program.html b/erpnext/www/lms/program.html
index 0ea2dbb..a0e45e3 100644
--- a/erpnext/www/lms/program.html
+++ b/erpnext/www/lms/program.html
@@ -65,7 +65,7 @@
{% block content %}
<section class="section">
- {{ hero(program.program_name, program.description, has_access) }}
+ {{ hero(program.program_name, program.description, has_access, {'name': 'LMS Home', 'url': '/lms'}) }}
<div class='container'>
<div class="row mt-5">
{% for course in courses %}