feat: batch folders, redirects, members page

This commit is contained in:
pateljannat
2021-04-26 10:16:53 +05:30
parent c18916096e
commit 44dc42d7dd
21 changed files with 262 additions and 24 deletions

View File

@@ -0,0 +1,13 @@
{% extends "templates/base.html" %}
{% from "www/macros/sidebar.html" import Sidebar %}
{% block title %}About{% endblock %}
{% block head_include %}
<meta name="description" content="Courses" />
<meta name="keywords" content="" />
{% endblock %}
{% block content %}
{{ Sidebar(course, batch_code) }}
<div class="container">
</div>
{% endblock %}

View File

@@ -0,0 +1,8 @@
import frappe
from community.www.courses.utils import redirect_if_not_a_member
def get_context(context):
context.no_cache = 1
context.course = frappe.form_dict["course"]
context.batch_code = frappe.form_dict["batch"]
redirect_if_not_a_member(context.course, context.batch_code)