diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index a6ce6ca521..82fd521148 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -71,6 +71,7 @@ def index(request): for entry in entries: soup = BeautifulSoup(entry.description) entry.image = soup.img['src'] if soup.img else None + entry.summary = soup.getText() universities = defaultdict(list) courses = sorted(modulestore().get_courses(), key=lambda course: course.number) diff --git a/lms/templates/index.html b/lms/templates/index.html index b55fa5a849..e3786b1af2 100644 --- a/lms/templates/index.html +++ b/lms/templates/index.html @@ -112,6 +112,9 @@ %endif
${entry.title} + %if entry.summary: +

${entry.summary}

+ %endif

${strftime("%m/%d/%y", entry.published_parsed)}