mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-03 21:19:18 +01:00
21 lines
828 B
HTML
21 lines
828 B
HTML
<section ng-controller="ArticlesController" ng-init="find()">
|
|
<div class="page-header">
|
|
<h1>Articles</h1>
|
|
</div>
|
|
<div class="list-group">
|
|
<a ng-repeat="article in articles" ui-sref="articles.view({articleId: article._id})" class="list-group-item">
|
|
<small class="list-group-item-text">
|
|
Posted on
|
|
<span ng-bind="article.created | date:'mediumDate'"></span>
|
|
by
|
|
<span ng-bind="article.user.displayName"></span>
|
|
</small>
|
|
<h4 class="list-group-item-heading" ng-bind="article.title"></h4>
|
|
<p class="list-group-item-text" ng-bind="article.content"></p>
|
|
</a>
|
|
</div>
|
|
<div class="alert alert-warning text-center" ng-if="articles.$resolved && !articles.length">
|
|
No articles yet, why don't you <a ui-sref="articles.create">create one</a>?
|
|
</div>
|
|
</section>
|