-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.html
73 lines (55 loc) · 3.63 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!--Copyright 2015 PetaByteBoy
This file is part of the Material Design Firmware Downloader.
The Material Design Firmware Downloader is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
The Material Design Firmware Downloader is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with the Material Design Firmware Downloader. If not, see <http://www.gnu.org/licenses/>. -->
<html ng-app="firmwareDownload" ng-controller="DownloadCtrl">
<head>
<title>Freifunk Rhein-Sieg-Kreis - Firmware Download</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="stylesheet" href="style.css"/>
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Roboto:400,500,700,400italic'>
<link rel="stylesheet" href="lib/angular-material.min.css"/>
<script src="lib/angular.min.js"></script>
<script src="lib/angular-animate.min.js"></script>
<script src="lib/angular-aria.min.js"></script>
<script src="lib/angular-material.min.js"></script>
<script src="config.js"></script>
<script src="app.js"></script>
</head>
<body class="main" layout-align="center center" layout="column">
<md-whiteframe class="md-whiteframe-z2" layout layout-align="center center">
<div class="whiteframe-content">
<img src="img/logo.png" class="md-card-image" alt="Freifunk Rhein-Sieg-Kreis">
<!-- TODO: read domain name and fw version from config -->
<h1 class="headline">Freifunk Rhein-Sieg-Kreis Firmware</h1>
<h2 class="headline">Version {{version.shortname}} herunterladen</h2>
<md-select ng-model="selectedMode" ng-show="modes">
<md-option ng-repeat="mode in modes" value="{{mode.id}}">{{mode.name}}</md-option>
</md-select>
<!-- remove for domain-wide firmware -->
<md-select placeholder="Bitte wähle einen Ort" ng-model="selectedSite" ng-show="sites">
<md-option ng-repeat="site in sites" value="{{site.id}}">{{site.name}}</md-option>
</md-select>
<!-- remove to disable manufactorer sorting -->
<md-select placeholder="Nach Hersteller sortieren" ng-model="selectedManufacturer" ng-change="selectedRouter = null;" ng-show="manufacturers">
<md-option ng-repeat="manufacturer in manufacturers" value="{{manufacturer}}">{{manufacturer}}</md-option>
</md-select>
<md-select placeholder="Bitte wähle einen Router" ng-model="selectedRouter" ng-show="routers">
<md-option ng-repeat="router in routers" ng-if="router.manufacturer == selectedManufacturer || selectedManufacturer == null" value="{{router.id}}">{{selectedManufacturer == null ? router.manufacturer+' '+router.name : router.name}}</md-option>
</md-select>
<!-- TODO: read all the hardcoded stuff from config -->
<md-button class="md-raised md-primary" ng-href="{{ interpolate(version.url) }}" ng-disabled="!(selectedSite && selectedRouter)" target="_self">Download Firmware</md-button>
<p class=license>Copyright 2015 PetaByteBoy | <a href="copying.html" target="_self">License</a></p>
</div>
</md-whiteframe>
</body>
</html>