feat: quiz redesign

This commit is contained in:
Jannat Patel
2022-02-21 11:43:05 +05:30
parent e3eda95b35
commit 28ef8e7db7
6 changed files with 87 additions and 48 deletions

View File

@@ -2,6 +2,7 @@ import re
import frappe
from frappe.utils import flt, cint, cstr
from school.lms.md import markdown_to_html
import string
RE_SLUG_NOTALLOWED = re.compile("[^a-z0-9]+")
@@ -292,3 +293,6 @@ def get_initial_members(course):
def is_instructor(course):
return len(list(filter(lambda x: x.name == frappe.session.user, get_instructors(course)))) > 0
def convert_number_to_character(number):
return string.ascii_uppercase[number]

View File

@@ -57,7 +57,7 @@
</div>
<div>
<a class="button-links" href="{{get_profile_url(review.owner_details.username) }}">
<span class="review-author">
<span class="bold-heading">
{{ review.owner_details.full_name }}
</span>
</a>