<article ng-controller="forumCtrlr" ng-init="getCategories()">
    <section class="item border">
        <h3>{{titles.main}}</h3> <br />
        <table>
            <tr>
                <th>{{titles.list}}</th>
                <th>{{titles.last}}</th>
            </tr>
            <tr ng-repeat="cat in categories">
                <td><span class="link" ng-click="setCat(cat.catNo)">{{cat.catName}}</span> <br />
                    {{cat.catDescr}} </td>
                <td ng-if="!(cat.lastTopic.topicNo == null)"><span class="link" ng-click="setTopic(cat.lastTopic.topicNo)">{{cat.lastTopic.topicSubject}}</span> {{cat.lastTopic.topicDate}}</td>
                <td ng-if="cat.lastTopic.topicNo == null">{{errors.topic.text}}</td>
            </tr>
            <tr ng-if="errors.catagory.show">
                <td colspan="2">{{errors.catagory.text}}</td>
            </tr>
        </table>
    </section>
</article>