% template BulletinBoardSvc(starwave.webgames.minigame.core.services.group.BulletinBoardSvc obj) %>
<%
context = obj.minigameContext
groupTo = context.groupDBTo.group
groupFrom = context.groupDBFrom.group
messages = obj.messages
actionCode = obj.actionCode
dateFormat("EEE, MMM d, h:mm aaa")
%>
<% groupTo.name %> Bulletin Board
<% Header("BulletinBoardSvc") %>
|
<% groupTo.name %> Bulletin Board |
<% EntryHeader(context) %>
|
|
| Options |
|
|
|
<%
messagePosted = false
if (messages != null) {
foreach (message in messages) {
if (message.entryID == context.entryDBFrom.entryID) {
messagePosted = true
}
}
}
if (actionCode == 1) {
''
'Bulletin Board'
} else if (not messagePosted and (groupTo.groupID == groupFrom.groupID)) {
''
'Create a Message'
} else if (messagePosted and (groupTo.groupID == groupFrom.groupID)) {
''
'Edit message'
} else {
'None available'
}
%>
|
| Group Messages |
<%
if (actionCode == 1) {
'| '
' | | |
<% Footer("BulletinBoardSvc") %>