Show collaboration role on details.

This commit is contained in:
Paulo Gustavo Veiga 2012-06-17 22:48:33 -03:00
parent 521111fac2
commit 29091dec88
3 changed files with 22 additions and 10 deletions

View File

@ -141,6 +141,12 @@ public class MindMapBean {
return mindmap.hasPermissions(collaborator, CollaborationRole.EDITOR);
}
public String getRole() {
final Collaboration collaboration = this.mindmap.findCollaboration(collaborator);
return collaboration.getRole().getLabel();
}
public MindMap getDelegated() {
return mindmap;
}

View File

@ -36,6 +36,7 @@ JOIN_NOW=Join Now!
REMOVE=Remove
MINDMAP=Mindmap
ROLE=Role
YOUR_ROLE=Your Role
CAPTCHA= Word Verification
FORGOT_PASSWORD=Forgot Password ?
CHANGE_PASSWORD=Change your Password

View File

@ -22,6 +22,10 @@
</div>
<div class="tab-pane fade" id="collaborators">
<ul class="unstyled">
<li>
<strong><spring:message code="YOUR_ROLE"/></strong>: ${mindmap.role}
</li>
<c:if test="${mindmap.owner}">
<li><strong><spring:message
code="EDITORS"/>(${mindmap.countCollaborators}): </strong>
<c:forEach items="${mindmap.collaborators}" var="mindmapCollaborator">
@ -33,6 +37,7 @@
${mindmapViewer.username}
</c:forEach>
</li>
</c:if>
</ul>
</div>