<div id="gameSummaryWrapper" class="container" ng-init="constructor()">
    <div class="row-fluid">
        <div class="span12">
            <div class="summary-image">
                <img ng-src="{{endGameSign}}" />
                <h2>Stats coming soon</h2>
            </div>
            <div class="stats">
                <div class="row-fluid">
                    <div class="span2"><strong>Name:</strong> {{gameStats['name']}}</div>
                    <div class="span2"><strong>Mode:</strong> {{gameStats['mode']}}</div>
                    <div class="span2"><strong>Map:</strong> {{gameStats['map']}}</div>
                    <div class="span2" ng-show="gameStats['difficulty'] != null"><strong>Difficulty:</strong> {{gameStats['difficulty']}}</div>
                    <div class="span2" ng-show="gameStats['targetTime'] != null"><strong>Target Survival Time:</strong> {{gameStats['targetTime']/60}}min</div>
                </div>
                <table class="table table-striped table-hover">
                    <tr>
                        <th></th>
                        <th ng-repeat="playerId in players">
                            <strong>{{stats[playerId]['name']}}</strong><br>
                            {{stats[playerId]['race']}}
                        </th>
                    </tr>
                    <tr ng-repeat="stat in generalStats">
                        <td>{{stat.formalName}}</td>
                        <td ng-repeat="player in players">
                            {{stats[player.id][stat.name]}}
                        </td>
                    </tr>
                </table>
            </div>
            <div class="row-fluid">
                <div class="buttons span5 offset7">
                    <div class="row-fluid">
                        <div class="span4">
                            <button class="btn btn-block" ng-click="goHome()">Home</button>
                        </div>
                        <div class="span8">
                            <button class="btn btn-block btn-primary" ng-click="goCreateNewGame()">Play Again</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>