From 3cd6badfa8d07c1b0dc1e819ae89de0845c61ff7 Mon Sep 17 00:00:00 2001
From: gnaegi <none@none>
Date: Wed, 15 Oct 2014 17:01:57 +0200
Subject: [PATCH] OO-1255 fix my courses menu alignment

---
 .../java/org/olat/course/run/CourseRuntimeController.java     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/java/org/olat/course/run/CourseRuntimeController.java b/src/main/java/org/olat/course/run/CourseRuntimeController.java
index bfd547f83f1..a050b70e4b6 100644
--- a/src/main/java/org/olat/course/run/CourseRuntimeController.java
+++ b/src/main/java/org/olat/course/run/CourseRuntimeController.java
@@ -454,6 +454,7 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im
 	private void initToolsMyCourse(ICourse course, UserCourseEnvironmentImpl uce) {
 
 		myCourse = new Dropdown("myCourse", "header.tools.mycourse", false, getTranslator());
+		myCourse.setElementCssClass("dropdown-menu-right");
 		myCourse.setIconCSS("o_icon o_icon_user");
 
 		// Personal tools on right side
@@ -501,6 +502,7 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im
 			if (uce.getCoachedGroups().size() > 0) {
 				for (BusinessGroup group:uce.getCoachedGroups()) {
 					Link link = LinkFactory.createToolLink(CMD_START_GROUP_PREFIX + group.getKey(), "group", StringHelper.escapeHtml(group.getName()), this);
+					link.setIconLeftCSS("o_icon o_icon-fw o_icon_group");
 					link.setUserObject(group);
 					myCourse.addComponent(link);
 					
@@ -511,6 +513,7 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im
 			if (uce.getParticipatingGroups().size() > 0) {
 				for (BusinessGroup group: uce.getParticipatingGroups()) {
 					Link link = LinkFactory.createToolLink(CMD_START_GROUP_PREFIX + group.getKey(), "group", StringHelper.escapeHtml(group.getName()), this);
+					link.setIconLeftCSS("o_icon o_icon-fw o_icon_group");
 					link.setUserObject(group);
 					myCourse.addComponent(link);
 				}
@@ -522,6 +525,7 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im
 					int pos = businessGroupService.getPositionInWaitingListFor(getIdentity(), group);
 					String name = StringHelper.escapeHtml(group.getName()) + " (" + pos + ")";
 					Link link = LinkFactory.createToolLink(CMD_START_GROUP_PREFIX + group.getKey(), "group", name, this);
+					link.setIconLeftCSS("o_icon o_icon-fw o_icon_group");
 					link.setUserObject(group);
 					link.setEnabled(false);
 					myCourse.addComponent(link);
-- 
GitLab