Drosty/truegm

View on GitHub
app/assets/templates/forumTopic/index.html

Summary

Maintainability
Test Coverage
<div>
  <h1>Topics</h1>
  <a href="#/league/{{leagueId}}/topics/new" class="btn btn-primary pull-right">
    New Topic
  </a>
</div>
<table class="table table-striped">
  <thead>
    <tr>
      <th>Name</th>
      <th>Posts</th>
    </tr>
  </thead>
  <tbody>
      <tr ng-repeat="topic in topics">
        <td>
          <a href="#/league/{{leagueId}}/topics/{{topic.id}}">{{ topic.name }}</a>
        </td>
        <td>
          {{topic.postCount}} - Updated {{ topic.lastUpdate }} ago.
        </td>
      </tr>
  </tbody>
</table>