Files
meanTorrent/modules/articles/client/views/view-article.client.view.html
Ryan Hutchison b3ad56efa3 feat(articles): Modify articles module to implement style guidelines.
Update the articles module to implement the style guidelines.

Much of this work is from @trainerbill

Closes #874
Closes #339
2016-01-02 01:53:59 -05:00

24 lines
794 B
HTML

<section>
<div class="page-header">
<h1 ng-bind="vm.article.title"></h1>
</div>
<div class="pull-right" ng-show="vm.authentication.user._id == vm.article.user._id">
<a class="btn btn-primary" ui-sref="articles.edit({ articleId: vm.article._id })">
<i class="glyphicon glyphicon-edit"></i>
</a>
<a class="btn btn-primary" ng-click="vm.remove()">
<i class="glyphicon glyphicon-trash"></i>
</a>
</div>
<small>
<em class="text-muted">
Posted on
<span ng-bind="vm.article.created | date:'mediumDate'"></span>
by
<span ng-if="vm.article.user" ng-bind="vm.article.user.displayName"></span>
<span ng-if="!vm.article.user">Deleted User</span>
</em>
</small>
<p class="lead" ng-bind="vm.article.content"></p>
</section>