feat: added navigation
This commit is contained in:
parent
570161b978
commit
6593263df8
@ -246,6 +246,8 @@ def get_student_topic_details(topic, course_name, program):
|
||||
:param course_name:
|
||||
"""
|
||||
student = get_current_student()
|
||||
if not student:
|
||||
return None
|
||||
course_enrollment = get_or_create_course_enrollment(course_name, program)
|
||||
progress = student.get_topic_progress(course_enrollment.name, topic)
|
||||
if not progress:
|
||||
|
@ -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 %}
|
||||
|
@ -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' %}
|
||||
|
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user