<ul class="playoff-round{if !isset($Conference)} playoff-round-final{/if}">
    {foreach item=Row from=$Rows}
        {if $Row.DataCells.round_id.Value == $Round and (!isset($Conference) or $Row.DataCells.conference_id.Value == $Conference)}
            <li class="playoff-round-game">
                <div class="playoff-round-game-team" data-id="{$Row.DataCells.first_team_id.Value}">
                    {if isset($Conference)}<div class="playoff-bracket-horizontal"></div>{/if}
                    <span class="playoff-round-game-team-seed">{$Row.DataCells.first_team_seed.Value}</span>
                    <a class="playoff-round-game-team-logo{if !isset($Conference) and $Row.DataCells.first_team_wins.Value > $Row.DataCells.second_team_wins.Value} playoff-round-game-team-logo-winner{/if}" href="{$Row.Details.Items.0.SeparatedPageLink}">
                        <img src="nba_images/teams/{$Row.DataCells.first_team_short_caption.Value}.svg" title="{$Row.DataCells.first_team_caption.Value}">
                    </a>
                    <span class="playoff-round-game-team-wins {if $Row.DataCells.first_team_wins.Value > $Row.DataCells.second_team_wins.Value} playoff-round-game-team-wins-winner{/if}">{$Row.DataCells.first_team_wins.Value}</span>
                </div>
                {if !isset($Conference)}<div class="playoff-bracket-horizontal"></div>{/if}
                <div class="playoff-round-game-team" data-id="{$Row.DataCells.second_team_id.Value}">
                    {if isset($Conference)}<div class="playoff-bracket-horizontal"></div>{/if}
                    <span class="playoff-round-game-team-seed">{$Row.DataCells.second_team_seed.Value}</span>
                    <a class="playoff-round-game-team-logo{if !isset($Conference) and $Row.DataCells.first_team_wins.Value < $Row.DataCells.second_team_wins.Value} playoff-round-game-team-logo-winner{/if}" href="{$Row.Details.Items.0.SeparatedPageLink}">
                        <img src="nba_images/teams/{$Row.DataCells.second_team_short_caption.Value}.svg" title="{$Row.DataCells.second_team_caption.Value}">
                    </a>
                    <span class="playoff-round-game-team-wins {if $Row.DataCells.first_team_wins.Value < $Row.DataCells.second_team_wins.Value} playoff-round-game-team-wins-winner{/if}">{$Row.DataCells.second_team_wins.Value}</span>
                </div>
            </li>
        {/if}
    {/foreach}
</ul>

{if isset($Conference)}
<div class="playoff-round-bracket">
{foreach item=Row from=$Rows}
    {if $Row.DataCells.round_id.Value == $Round and ($Row.DataCells.conference_id.Value == $Conference)}
        <div class="playoff-round-game-bracket playoff-round-game-bracket-{$Round}"></div>
    {/if}
{/foreach}
</div>
{/if}