<!-- 最近比赛渲染模板 -->
<%_.each(data, function(item) {
    var winClass = item.battle_result ? "" : "red";
    var resultName = item.battle_result ? "胜利" : "失败";
    var champion = item.champion;

    // 比赛时间转换
    var localTime  = moment.utc(item.created).toDate();
    localTime = moment(localTime).format('YYYY-MM-DD HH:mm:ss');
    var timeArr = localTime.split(' ');
    var monDayArr = timeArr[0].split('-');
    var hourMinArr = timeArr[1].split(':');
    var time = monDayArr[1] + '-' + monDayArr[2] + ' ' + hourMinArr[0] + ':' + hourMinArr[1];
%>
    <li class="clearfix history_li">
        <img src="<%= staticImg + '/champions/' + item.champion.name + '_40x40.jpg' %>" title="<%= champion.title %>">
        <div class="history_info">
            <p class="type"><%=item.game_type.name_cn%></p>
            <p class="time"><%=time%></p>
        </div>
        <div class="result <%=winClass%>"><%=resultName%></div>
    </li>
<%});%>