Merge branch 'infoFix' into develop

This commit is contained in:
Emil Siverhall 2012-03-20 10:18:36 +01:00
commit 6748ce5c75

@ -81,10 +81,15 @@ public class MyProjectIdeasPanel extends Panel {
item.add(new Label("level", idea.getProjectClass().getName()));
item.add(new Label("authors", authorString));
String supervisorString = idea.getMatch().getSupervisor() != null && idea.getMatch().getStatus().equals(Match.Status.CONFIRMED) ?
idea.getMatch().getSupervisor().getNameAsString()+" ("+idea.getMatch().getSupervisor().getEmailAsString()+")" :
"Supervisor allocation in progress";
item.add(new Label("supervisor", supervisorString));
String supervisor = "";
if(idea.getMatch().getSupervisor()!=null&&idea.getMatch().getStatus().equals(Match.Status.CONFIRMED))
supervisor = idea.getMatch().getSupervisor().getNameAsString()+" ("+idea.getMatch().getSupervisor().getEmailAsString()+")";
else if(idea.getMatch().getStatus().equals(Match.Status.REFUSED))
supervisor = "Project idea refused, needs to be rewritten";
else
supervisor = "Supervisor allocation in progress";
item.add(new Label("supervisor", supervisor));
}