Skip to content
Snippets Groups Projects
Commit 7797043e authored by Matthai Kurian's avatar Matthai Kurian
Browse files

OO-307: corrected long title display

parent f9f16ae7
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ public class TitledWrapperHelper { ...@@ -67,7 +67,7 @@ public class TitledWrapperHelper {
} }
} }
TitleInfo titleInfo = new TitleInfo(null, courseNode.getShortTitle(), description, courseNode.getIdent()); TitleInfo titleInfo = new TitleInfo(null, title, description, courseNode.getIdent());
titleInfo.setDescriptionCssClass("o_course_run_objectives"); titleInfo.setDescriptionCssClass("o_course_run_objectives");
TitledWrapperController titledController = new TitledWrapperController(ureq, wControl, controller, "o_course_run", titleInfo); TitledWrapperController titledController = new TitledWrapperController(ureq, wControl, controller, "o_course_run", titleInfo);
if (StringHelper.containsNonWhitespace(iconCssClass)) { if (StringHelper.containsNonWhitespace(iconCssClass)) {
...@@ -78,15 +78,12 @@ public class TitledWrapperHelper { ...@@ -78,15 +78,12 @@ public class TitledWrapperHelper {
String title = courseNode.getLongTitle(); String title = courseNode.getLongTitle();
String description = null; String description = null;
if (StringHelper.containsNonWhitespace(courseNode.getLearningObjectives())) { if (StringHelper.containsNonWhitespace(courseNode.getLearningObjectives())) {
if (StringHelper.containsNonWhitespace(title)) { //description = courseNode.getLearningObjectives();
description = "<h4>" + title + "</h4>" + courseNode.getLearningObjectives();
} else {
description = courseNode.getLearningObjectives();
}
} }
TitleInfo titleInfo = new TitleInfo(null, courseNode.getShortTitle(), description, courseNode.getIdent()); TitleInfo titleInfo = new TitleInfo(null, title, description, courseNode.getIdent());
titleInfo.setDescriptionCssClass("o_course_run_objectives"); titleInfo.setDescriptionCssClass("o_course_run_objectives");
TitledWrapperController titledController = new TitledWrapperController(ureq, wControl, controller, "o_course_run", titleInfo); TitledWrapperController titledController = new TitledWrapperController(ureq, wControl, controller, "o_course_run", titleInfo);
if (StringHelper.containsNonWhitespace(iconCssClass)) { if (StringHelper.containsNonWhitespace(iconCssClass)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment