<% if(tab=='new'){ %>
    <% _.each(games,function(game){ %>
        <li>
            <a class="block-link" href="<%= game.portal_url.cn %>">
        <img src="<%= game.cover_pic %>" alt="<%= game.full_game_name %>" />
        <div class="item-msg">
            <h4>
                    <%= game.full_game_name %>
            </h4>
            <p>
                <%= game.option10 %>/<%= game.option2 %>
            </p>
        </div>
        </a>
            <a href="http://newgame.duowan.cn/ku/<%= game.game_id %>.html" class="btn btn-detail">详情</a>

        </li>
        <% }) %>
<% }else{ %> 

<% _.each(games,function(game){ %>
        <li>
            <a class="block-link" href="<%= game.portal_url.cn %>">
        <img src="<%= game.cover_pic %>" alt="<%= game.short_name %>" />
        <div class="item-msg">
            <h4>
                    <%= game.short_name %>
            </h4>
            <p>
                <%= game.option10 %>/<%= game.option2 %>
            </p>
        </div>
        </a>
            <a href="http://newgame.duowan.cn/ku/<%= game.game_id %>.html" class="btn btn-detail">详情</a>

        </li>
        <% }) %>

<% } %>