remotes/origin/hotfix/LIL-691
gzbender 8 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 %} {% endif %}
</div> </div>
<a class="courses__title" href="{% url 'course' course.id %}?next={{ request.get_full_path }}">{{ course.title }}</a> <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>
<div class="courses__user user"> <div class="courses__user user">
<a href="{% if course.author %}{% url 'user' course.author.id %}{% endif %}"> <a href="{% if course.author %}{% url 'user' course.author.id %}{% endif %}">

@ -107,7 +107,7 @@ class UserView(DetailView):
def get_context_data(self, object): def get_context_data(self, object):
context = super().get_context_data() context = super().get_context_data()
context['published'] = Course.objects.filter( context['published'] = Course.objects.filter(
author=self.object, author=self.object, status=Course.PUBLISHED,
) )
return context return context

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

Loading…
Cancel
Save