From 343f5a5393b82682226f280405d605c2c7789621 Mon Sep 17 00:00:00 2001 From: Matthew Mongeau Date: Mon, 23 Jul 2012 13:10:05 -0400 Subject: [PATCH] Add dek to berkeley story. --- common/djangoapps/student/views.py | 1 + lms/templates/index.html | 3 +++ 2 files changed, 4 insertions(+) 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