diff --git a/lms/lms/md.py b/lms/lms/md.py index 520be6fc..8105c72f 100644 --- a/lms/lms/md.py +++ b/lms/lms/md.py @@ -99,7 +99,7 @@ class MacroInlineProcessor(InlineProcessor): return e, m.start(0), m.end(0) def sanitize_html(html, macro): - """Sanotize the html using BeautifulSoup. + """Sanitize the html using BeautifulSoup. The markdown processor request the correct markup and crashes on any broken tags. This makes sures that all those things are fixed diff --git a/lms/public/css/style.css b/lms/public/css/style.css index 946bbca9..f56cd446 100644 --- a/lms/public/css/style.css +++ b/lms/public/css/style.css @@ -677,7 +677,7 @@ input[type=checkbox] { font-size: var(--text-sm); display: flex; flex-direction: column; - margin-bottom: 4rem; + margin-bottom: 3rem; padding-left: 200px; padding-right: 1rem; box-shadow: var(--shadow-sm); @@ -1359,7 +1359,6 @@ pre { .profile-page-body { background-color: var(--gray-50); - padding: 2.5rem 0; } .profile-column-grid { diff --git a/lms/www/batch/learn.html b/lms/www/batch/learn.html index 2b626d5b..a9924c1d 100644 --- a/lms/www/batch/learn.html +++ b/lms/www/batch/learn.html @@ -25,9 +25,9 @@ {% if membership %} {{ pagination(prev_url, next_url) }} {% endif %} + {{ Discussions() }} - {{ Discussions() }} {% endblock %} @@ -51,7 +51,7 @@ {% if membership %} is-member {% endif %} {% if membership or is_instructor %} eligible-for-submission {% endif %}" data-lesson="{{ lesson.name }}" data-course="{{ course.name }}">{{ lesson.title }} - COMPLETED + {{ _("COMPLETED") }} {% if is_instructor %} {{ _("Edit") }} @@ -75,7 +75,7 @@ {% if ins_len == 1 %} {{ instructors[0].full_name }} {% else %} - {% set suffix = "other" if ins_len - 1 == 1 else "others" %} + {% set suffix = _("other") if ins_len - 1 == 1 else _("others") %} {{ instructors[0].full_name.split(" ")[0] }} and {{ ins_len - 1 }} {{ suffix }} {% endif %} @@ -83,22 +83,21 @@
-