<template name="dashboard">
    <div class="row">
        {{#each rooms}}
            {{#if private}}
                {{#if isModerator}}
                    <div class="col-md-4 col-sm-6 col-xs-12">
                        <div class="station" style="background-color: gray">
                            <h3>{{display}}</h3>
                            {{#with type=type}}
                                <h5>{{currentSong.song.title}}</h5>
                                <h6>{{currentSong.song.artist}}</h6>
                            {{/with}}
                            <a href="/{{type}}" class="station_link"></a>
                        </div>
                    </div>
                {{/if}}
            {{else}}
                <div class="col-md-4 col-sm-6 col-xs-12">
                    <div class="station">
                        {{#with type=type}}
                            <i class="fa fa-user user-num"></i> <span class="user-num">{{userNum}}</span>
                        {{/with}}
                        <h3>{{display}}</h3>
                        {{#with type=type}}
                            <h5>{{currentSong.song.title}}</h5>
                            <h6>{{currentSong.song.artist}}</h6>
                        {{/with}}
                        <a href="/{{type}}" class="station_link"></a>
                    </div>
                </div>
            {{/if}}
        {{/each}}
    </div>
</template>
