-
{{ course.title }}
- {% if course.description %}
-
- {{ frappe.utils.md_to_html(course.description[:200]) }}
-
- {% endif %}
-
{% endmacro %}
+
+{% block script %}
+
+{% endblock %}
diff --git a/community/www/courses/index.py b/community/www/courses/index.py
index 49b1864a..86d6acf2 100644
--- a/community/www/courses/index.py
+++ b/community/www/courses/index.py
@@ -5,8 +5,8 @@ def get_context(context):
context.courses = get_courses()
def get_courses():
- courses = frappe.get_all(
- "LMS Course",
- fields=['name', 'title', 'description']
- )
+ course_names = frappe.get_all("LMS Course", pluck="name")
+ courses = []
+ for course in course_names:
+ courses.append(frappe.get_doc("LMS Course", course))
return courses
diff --git a/community/www/dashboard/__init__.py b/community/www/dashboard/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/dashboard/__pycache__/__init__.py b/community/www/dashboard/__pycache__/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/hackathons/__init__.py b/community/www/hackathons/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/hackathons/__pycache__/__init__.py b/community/www/hackathons/__pycache__/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/hackathons/macros/__init__.py b/community/www/hackathons/macros/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/home/__init__.py b/community/www/home/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/home/__pycache__/__init__.py b/community/www/home/__pycache__/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/macros/__init__.py b/community/www/macros/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/my-courses/__init__.py b/community/www/my-courses/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/my-courses/__pycache__/__init__.py b/community/www/my-courses/__pycache__/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/profiles/__init__.py b/community/www/profiles/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/profiles/__pycache__/__init__.py b/community/www/profiles/__pycache__/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/sketches/__init__.py b/community/www/sketches/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/community/www/sketches/__pycache__/__init__.py b/community/www/sketches/__pycache__/__init__.py
new file mode 100644
index 00000000..e69de29b