Created
September 24, 2015 18:48
-
-
Save vaneves/f644d80920d04fcdb445 to your computer and use it in GitHub Desktop.
Blog Ninja - Post List HTML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#/add" class="btn btn-primary">Criar</a> | |
<table class="table table-striped"> | |
<thead> | |
<tr> | |
<th>Título</th> | |
<th>Data</th> | |
<th style="width: 60px;"></th> | |
<th style="width: 60px;"></th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr ng-repeat="post in posts"> | |
<td>{{ post.title }}</td> | |
<td>{{ post.date }}</td> | |
<td><a href="#/edit/{{ post.id }}" class="btn btn-default btn-xs">Editar</a></td> | |
<td><a ng-click="delete(post.id)" class="btn btn-default btn-xs">Excluir</a></td> | |
</tr> | |
<tr ng-if="posts.length == 0"> | |
<td colspan="4">Nenhum post publicado.</td> | |
</tr> | |
</tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment