47 lines
992 B
HTML
47 lines
992 B
HTML
<html>
|
|
<head>
|
|
<meta charset="utf8">
|
|
<title>Exercice: Utilisation des filtres</title>
|
|
</head>
|
|
<!-- Déclaration de l'application -->
|
|
<body ng-app="Exo">
|
|
|
|
<div ng-controller="MainCtrl">
|
|
|
|
<h1>Commits du dépôt torvalds/linux sur Github</h1>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
<tr>
|
|
<th colspan="4">
|
|
<input type="text" style="width: 100%" placeholder="Filtrer la liste" />
|
|
</th>
|
|
<tr>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>SHA</th>
|
|
<th>Author</th>
|
|
<th>Message</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr ng-repeat="c in commits">
|
|
<td>{{c.commit.author.date }}</td>
|
|
<td>{{c.sha }}</td>
|
|
<td>{{c.commit.author.name }}</td>
|
|
<td>{{c.commit.message}}</td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<!-- Import de du framework Angular -->
|
|
<script src="../node_modules/angular/angular.js"></script>
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|