overworked/hearthnet

View on GitHub
client/inbox/inbox.html

Summary

Maintainability
Test Coverage
<template name="inbox">
    {{#if isNotEmpty conversations}}
        <ul class="conversationsList">
            {{#each conversations}}
                <li class="conversationSelector">
                    {{#each getOtherParticipants participants}}
                        {{username}}
                    {{/each}}
                </li>
            {{/each}}
        </ul>
    {{else}}
        <div class="conversationsList">
            No active conversations
        </div>
    {{/if}}

    {{#if exists messages}}
        {{>conversationView}}
    {{else}}
        {{>emptyConversationView}}
    {{/if}}
</template>