mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
Show collaboration role on details.
This commit is contained in:
parent
521111fac2
commit
29091dec88
@ -141,6 +141,12 @@ public class MindMapBean {
|
|||||||
return mindmap.hasPermissions(collaborator, CollaborationRole.EDITOR);
|
return mindmap.hasPermissions(collaborator, CollaborationRole.EDITOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getRole() {
|
||||||
|
final Collaboration collaboration = this.mindmap.findCollaboration(collaborator);
|
||||||
|
return collaboration.getRole().getLabel();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public MindMap getDelegated() {
|
public MindMap getDelegated() {
|
||||||
return mindmap;
|
return mindmap;
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@ JOIN_NOW=Join Now!
|
|||||||
REMOVE=Remove
|
REMOVE=Remove
|
||||||
MINDMAP=Mindmap
|
MINDMAP=Mindmap
|
||||||
ROLE=Role
|
ROLE=Role
|
||||||
|
YOUR_ROLE=Your Role
|
||||||
CAPTCHA= Word Verification
|
CAPTCHA= Word Verification
|
||||||
FORGOT_PASSWORD=Forgot Password ?
|
FORGOT_PASSWORD=Forgot Password ?
|
||||||
CHANGE_PASSWORD=Change your Password
|
CHANGE_PASSWORD=Change your Password
|
||||||
|
@ -22,17 +22,22 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade" id="collaborators">
|
<div class="tab-pane fade" id="collaborators">
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<li><strong><spring:message
|
<li>
|
||||||
code="EDITORS"/>(${mindmap.countCollaborators}): </strong>
|
<strong><spring:message code="YOUR_ROLE"/></strong>: ${mindmap.role}
|
||||||
<c:forEach items="${mindmap.collaborators}" var="mindmapCollaborator">
|
|
||||||
${mindmapCollaborator.username}
|
|
||||||
</c:forEach>
|
|
||||||
</li>
|
|
||||||
<li><strong><spring:message code="VIEWERS"/>(${mindmap.countViewers}): </strong>
|
|
||||||
<c:forEach items="${mindmap.viewers}" var="mindmapViewer">
|
|
||||||
${mindmapViewer.username}
|
|
||||||
</c:forEach>
|
|
||||||
</li>
|
</li>
|
||||||
|
<c:if test="${mindmap.owner}">
|
||||||
|
<li><strong><spring:message
|
||||||
|
code="EDITORS"/>(${mindmap.countCollaborators}): </strong>
|
||||||
|
<c:forEach items="${mindmap.collaborators}" var="mindmapCollaborator">
|
||||||
|
${mindmapCollaborator.username}
|
||||||
|
</c:forEach>
|
||||||
|
</li>
|
||||||
|
<li><strong><spring:message code="VIEWERS"/>(${mindmap.countViewers}): </strong>
|
||||||
|
<c:forEach items="${mindmap.viewers}" var="mindmapViewer">
|
||||||
|
${mindmapViewer.username}
|
||||||
|
</c:forEach>
|
||||||
|
</li>
|
||||||
|
</c:if>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user