Source

atlassian-scala-example-plugin / src / main / resources / soy / room.soy

Full commit
{namespace Confluence.Templates.HipChat.Rooms}

/**
* @param messages
*/
{template .history}
<table class="aui hipchat-messages">
<tbody>
        {foreach $message in $messages}
        <tr>
            <td headers="basic-name">{$message.from.name}</td>
            <td headers="basic-type">{$message.message|noAutoescape}</td>
            <td headers="basic-order">{$message.date}
            </td>
        </tr>
        {/foreach}
</tbody>
</table>
{/template}

/**
 * @param rooms
 */
{template .list}

        {foreach $room in $rooms}
    <div>
        <h3>{$room.name}</h3>
        <p>
            {$room.topic}
        </p>
    </div>
        {/foreach}

{/template}