diff --git a/apps/course/templates/course/_items.html b/apps/course/templates/course/_items.html index 94586e99..f27bd326 100644 --- a/apps/course/templates/course/_items.html +++ b/apps/course/templates/course/_items.html @@ -54,7 +54,7 @@ {% endif %} {{ course.title }} -
{{ course.short_description | safe | linebreaks }} +
{{ course.short_description | safe | linebreaks | truncatechars_html:300 }}
diff --git a/apps/user/views.py b/apps/user/views.py index 41a18cb0..3f4ca843 100644 --- a/apps/user/views.py +++ b/apps/user/views.py @@ -107,7 +107,7 @@ class UserView(DetailView): def get_context_data(self, object): context = super().get_context_data() context['published'] = Course.objects.filter( - author=self.object, + author=self.object, status=Course.PUBLISHED, ) return context diff --git a/web/src/sass/_common.sass b/web/src/sass/_common.sass index fc1ac8d1..195ff46d 100755 --- a/web/src/sass/_common.sass +++ b/web/src/sass/_common.sass @@ -4114,6 +4114,8 @@ a font-size: 16px padding-bottom: 24px text-align: left + margin: 0 + max-width: 100% &.pic position: relative width: 100%