Files
biomedjs/public/partials/posts/index.html
Dobie Wollert d3089dcd17 Latest Code
2015-04-06 03:28:20 -04:00

50 lines
1.8 KiB
HTML

<ul class="breadcrumb">
<li><a href="/posts"><i class="icon-briefcase"></i> Posts</a><li>
</ul>
<header>
<h1>Posts</h1>
</header>
<div class="row-fluid">
<div class="span12">
<div class="toolbelt">
<a href="/posts/add" class="btn btn-primary">Create new Post</a>
<a ng-click="selectPage('')" class="btn">All</a>
<a ng-click="selectPage('front')" class="btn">Front Page</a>
<a ng-click="selectPage('about-us')" class="btn">About Us</a>
<a ng-click="selectPage('sales')" class="btn">Sales</a>
<a ng-click="selectPage('service')" class="btn">Service</a>
<div class="pull-right">
<span class="toolbelt-text">Total Published: {{posted}}</span>
</div>
</div>
<table class="biomed-table" infinite-scroll="addItems()" can-load="canLoad" threshold="300">
<thead>
<tr>
<th style="width: 45%">Title</th>
<th style="width: 15%">Author</th>
<th style="width: 15%">Created on</th>
<th style="width: 15%">Posted on</th>
<th style="width: 10%">Status</th>
</tr>
</thead>
<tbody>
<tr ng-show="loading"><td colspan="5" class="table-loading"><i class="loader"></i></td></tr>
<tr ng-hide="loading || posts.length"><td colspan="5" class="table-message">There is no information to display.</td></tr>
<tr ng-hide="loading" ng-repeat="post in posts">
<td>
<a href="/posts/{{post._id}}">
<span ng-show="post.title">{{post.title}}</span>
<span ng-hide="post.title"><i>Missing Title</i></span>
</a>
</td>
<td>{{post.author.name.first}} {{post.author.name.last}}</td>
<td>{{post.createdOn | date:'medium'}}</td>
<td>{{post.postedOn | date:'medium'}}</td>
<td>{{post.status}}</td>
</tr>
</tbody>
</table>
</div>
</div>