-
Notifications
You must be signed in to change notification settings - Fork 36
/
index.ejs
88 lines (68 loc) · 2.75 KB
/
index.ejs
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
<!DOCTYPE html>
<html>
<head>
<title>Forever Web UI v</title>
<link rel="stylesheet" href="/css/bootstrap.1.4.0.min.css" />
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="/css/style.css" />
</head>
<body>
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit">
<h1>Forever Web UI <small>beta</small></h1>
<p>Simple web UI for efficient nodejs administration</p>
<div class="menubar left">Process count <span id="process-count">0</span></div>
<div class="menubar right">
<span href="#" class="btn refresh">Refresh list</span>
</div>
</div>
<div id="process-list">
</div>
<footer>
<p>Forever Web UI v<span id="app-version"></span> - by <a href="http://twitter.com/FGRibreau">@FGRibreau</a></p>
</footer>
</div> <!-- /container -->
<div id="tplInfo" class="alert-message block-message info hidden">
<a class="close" href="#">×</a>
<div class="alert-message-content"></div>
</div>
<script id="process-tmpl" type="text/html">
<div class="span11">
<h2>
{{file}}
<small>{{time}}</small>
</h2>
</div>
<div class="span5">
<a class="btn info" href="/info/{{uid}}">Info</a>
<a class="btn primary restart" href="/restart/{{uid}}">Restart</a>
<a class="btn danger stop" href="/stop/{{uid}}">Stop</a>
</div>
</script>
<!-- Backbone dependencies -->
<script src="/js/jquery.1.7.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/pretty.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/underscore.1.2.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/backbone.0.5.3.dev.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/bootstrap-alerts.1.4.0.dev.js" type="text/javascript" charset="utf-8"></script>
<!-- Template lib -->
<script src="/js/mustache.js" type="text/javascript" charset="utf-8"></script>
<!-- App -->
<script type="text/javascript" charset="utf-8">
var App = {version: "0.1.0"};
</script>
<script src="/appjs/Process.js" type="text/javascript" charset="utf-8"></script>
<script src="/appjs/ProcessView.js" type="text/javascript" charset="utf-8"></script>
<script src="/appjs/ProcessList.js" type="text/javascript" charset="utf-8"></script>
<script src="/appjs/AppView.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function(){
App.ForeverWebUIApp = new App.AppView(<%- JSON.stringify(process) %>);
});
</script>
</body>
</html>