-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
186 lines (167 loc) · 8.3 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Bootstrap Google Plus Theme</title>
<meta name="generator" content="Bootply" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="css/bootstrap.min.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="css/styles.css" rel="stylesheet">
<link rel="stylesheet" href="css/fa/css/font-awesome.min.css">
</head>
<body ng-app="serverInputApp">
<div class="navbar navbar-fixed-top header" id="nav">
<div class="col-md-12">
<div class="collapse navbar-collapse" id="navbar-collapse2">
<ul class="nav navbar-nav navbar-right">
<!--<li class="active"><a href="#">Posts</a></li>-->
<li><a href="#netmapModal" role="button" data-toggle="modal">Network Map</a></li>
<li><a href="#aboutModal" role="button" data-toggle="modal">About</a></li>
</ul>
</div>
</div>
</div>
<!--main-->
<div class="container" id="main" ng-controller="serverInputController">
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="panel panel-default">
<div class="panel-heading"><h4>Home Lab Servers</h4></div>
<div class="panel-body">
<ul class="nav nav-tabs">
<li ng-repeat="hypervisor in homelab.hypervisors"><a href="#{{hypervisor.hypervisorName}}" data-toggle="tab">{{hypervisor.hypervisorName}}</a></li>
<!--<li><a href="#B" data-toggle="tab">Section 2</a></li>
<li><a href="#C" data-toggle="tab">Section 3</a></li>-->
</ul>
<div class="tabbable">
<div class="tab-content">
<div class="tab-pane" ng-repeat="hypervisor in homelab.hypervisors" id="{{hypervisor.hypervisorName}}">
<div class="well well-sm">
<!-- Responsive table starts here -->
<!-- For correct display on small screens you must add 'data-title' to each 'td' in your table -->
<div class="table-responsive-vertical shadow-z-1">
<!-- Table starts here -->
<table id="table" class="table table-hover table-mc-red">
<thead>
<tr>
<th><i class="fa fa-cubes"></i> VMID</th>
<th><i class="fa fa-bullhorn"></i> Hostname</th>
<th><i class="fa fa-info-circle"></i> Description</th>
<th><i class="fa fa-map-signs"></i> IP Address</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="server in hypervisor.servers">
<td data-title="VMID">{{server.vmid}}</td>
<td data-title="hostname"><a target="_blank" href="{{server.url}}">{{server.hostname}}</a></td>
<td data-title="description">
{{server.desc}}
</td>
<td data-title="ip"><a target="_blank" href="{{server.url}}">{{server.ip}}</a></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- <div class="tab-pane" id="B">
<div class="well well-sm">Howdy, I'm in Section B.</div>
</div>
<div class="tab-pane" id="C">
<div class="well well-sm">I've decided that I like wells.</div>
</div>-->
</div>
</div> <!-- /tabbable -->
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 col-sm-6" data-ng-repeat="svr in iservers.servers">
<div class="panel panel-default">
<div class="panel-heading"><h4>{{svr.serverName}}</h4></div>
<div class="panel-body">
<!-- Responsive table starts here -->
<!-- For correct display on small screens you must add 'data-title' to each 'td' in your table -->
<div class="table-responsive-vertical shadow-z-1">
<!-- Table starts here -->
<table id="table" class="table table-hover table-mc-red">
<thead>
<tr>
<th>Name</th>
<th>Address</th>
</tr>
</thead>
<tbody>
<!-- <tr>
<td data-title="serviceName">service name</td>
<td data-title="serviceAddress">service Address</td>
</tr>-->
<tr ng-repeat="service in svr.services">
<td data-title="serviceName"><a target="_blank" href="{{service.serviceURL}}">{{service.serviceName}}</a></td>
<td data-title="serviceAddress"><a target="_blank" href="{{service.serviceURL}}">{{service.serviceAddress}}</a></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div><!--/main-->
<!--netmap modal-->
<div id="netmapModal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-netmap modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h2 class="text-center">Network Map</h2>
</div>
<div class="modal-body">
<div class="col-md-12 text-center">
<a href="img/netmap.png" target="_blank"><img class="netmap-image" src="img/netmap.png"></a>
</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">OK</button>
</div>
</div>
</div>
</div>
<!--about modal-->
<div id="aboutModal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h2 class="text-center">About</h2>
</div>
<div class="modal-body">
<div class="col-md-12 text-center">
This project was created by the4ndy (with help of course)
<br><br>
<p>"Please Edit this Modal to your liking. No attribution is required. Donations are accepted and greatly appreciated. If you are wondering "what am I going to do with this space?" That is not my problem :P Though I intend to use this space for personal links (like to the github for this project)."
<br>-the4ndy</p>
<hr>
<i class="fa fa-bitcoin"></i> 18GiREf2TxQTMK5YXP3MgpgWc4qoYKZCWC
<hr>
</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">OK</button>
</div>
</div>
</div>
</div>
<!-- script references -->
<script src="js/angular.min.js"></script>
<script src="js/app.js"></script>
<script src="js/controller.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>