Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Last active March 9, 2016 21:23
Show Gist options
  • Save LarsBergqvist/8c8d3274e561559d6c3b to your computer and use it in GitHub Desktop.
Save LarsBergqvist/8c8d3274e561559d6c3b to your computer and use it in GitHub Desktop.
WebRelay index.html
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script data-require="[email protected]" data-semver="1.4.8" src="https://code.angularjs.org/1.4.8/angular.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.css" />
<script src="/static/Controller.js"></script>
<link rel="stylesheet" href="/static/style.css" />
</head>
<body>
<div ng-controller="RelaysController">
<div>
<h1 ng-bind="header"></h1>
</div>
<div>
<table class="table table-hover">
<thead class="thead-default">
<tr>
<th>Id</th>
<th>Name</th>
<th>State</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in relays">
<td class="vert-align" ng-bind="item.id"></td>
<td class="vert-align">
<b ng-bind="item.name"</b>
</td>
<td class="vert-align">
<img ng-src=[[item.image]] ng-click="toggleRelay(item)">
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment