remotes/origin/hotfix/LIL-691
gzbender 7 years ago
parent d04745629a
commit d419656f25
  1. 2
      apps/course/templates/course/_items.html
  2. 2
      apps/user/views.py
  3. 2
      web/src/sass/_common.sass

@ -54,7 +54,7 @@
{% endif %}
</div>
<a class="courses__title" href="{% url 'course' course.id %}?next={{ request.get_full_path }}">{{ course.title }}</a>
<div class="courses__content">{{ course.short_description | safe | linebreaks }}
<div class="courses__content">{{ course.short_description | safe | linebreaks | truncatechars_html:300 }}
</div>
<div class="courses__user user">
<a href="{% if course.author %}{% url 'user' course.author.id %}{% endif %}">

@ -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

@ -4114,6 +4114,8 @@ a
font-size: 16px
padding-bottom: 24px
text-align: left
margin: 0
max-width: 100%
&.pic
position: relative
width: 100%

Loading…
Cancel
Save