Changed information texts.
This commit is contained in:
parent
9ef1b7381f
commit
592904ad92
@ -226,14 +226,14 @@ public class ManualMatchPanel extends Panel {
|
||||
*/
|
||||
private String createMatchMessage(final String nameAndEmail, final String projectIdeaTitle, Match.Status status) {
|
||||
StringBuilder messageStr = new StringBuilder();
|
||||
messageStr.append("The project idea ");
|
||||
messageStr.append(projectIdeaTitle != null ? projectIdeaTitle : "");
|
||||
if(status.equals(Match.Status.CONFIRMED)) {
|
||||
messageStr.append(" was matched to ");
|
||||
} else if (status.equals(Match.Status.PUBLISHED)) {
|
||||
messageStr.append(" was suggested to ");
|
||||
}
|
||||
messageStr.append(nameAndEmail != null ? nameAndEmail : "" );
|
||||
if(status.equals(Match.Status.CONFIRMED)) {
|
||||
messageStr.append(" was accepted ");
|
||||
} else if (status.equals(Match.Status.PUBLISHED)) {
|
||||
messageStr.append(" was suggested ");
|
||||
}
|
||||
messageStr.append("as supervisor to The project idea ");
|
||||
messageStr.append(projectIdeaTitle != null ? projectIdeaTitle : "");
|
||||
messageStr.append(".");
|
||||
return messageStr.toString();
|
||||
}
|
||||
@ -276,13 +276,14 @@ public class ManualMatchPanel extends Panel {
|
||||
*/
|
||||
private String createConfirmationMessage(Employee supervisor, Match.Status status) {
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.append("Confirm that you want to ");
|
||||
if(status.equals(Match.Status.CONFIRMED)) {
|
||||
stringBuilder.append("Confirm that you want to match the project idea to ");
|
||||
stringBuilder.append("accept ");
|
||||
} else if (status.equals(Match.Status.PUBLISHED)) {
|
||||
stringBuilder.append("Confirm that you want to suggest the project idea to ");
|
||||
stringBuilder.append("suggest ");
|
||||
}
|
||||
stringBuilder.append(createNameAndEmail(supervisor));
|
||||
stringBuilder.append(".");
|
||||
stringBuilder.append(" as supervisor for the project idea.");
|
||||
return stringBuilder.toString();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user