Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
110 lines (91 loc) · 3.72 KB
/
Copy pathindex.html
File metadata and controls
110 lines (91 loc) · 3.72 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Log Viewer</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css">
<link rel="stylesheet" href="assets/custom.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<!-- File Location form -->
<div class="row">
<div class="col-xs-12">
<form class="form">
<div class="col-xs-8">
<div class="form-group">
<input type="text" class="form-control" id="path" placeholder="/path/to/file" />
<input type="hidden" id="page" value="1" />
</div>
</div>
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block">View</button>
</div>
</form>
</div>
</div>
<!-- EOF File Location form -->
<div id="content">
<div class="row">
<div class="col-md-12" id="log-panel">
</div>
</div>
<br>
<!-- Pagination -->
<div class="row">
<div class="col-md-12" id="paginator">
<div class="btn-group btn-group-justified" role="group">
<a href="#" id="fst" class="btn btn-default btn-block" aria-label="Beginning">
<span class="glyphicon glyphicon-step-backward" aria-hidden="true"></span>
</a>
<a href="#" id="prev" class="btn btn-default btn-block" aria-label="Previous">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
</a>
<a href="#" id="nxt" class="btn btn-default btn-block" aria-label="Next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
</a>
<a href="#" id="lst" class="btn btn-default btn-block" aria-label="End">
<span class="glyphicon glyphicon-step-forward" aria-hidden="true"></span>
</a>
</div>
</div>
</div>
<!-- EOF Pagination -->
</div>
</div>
<br>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script type='text/template' id="log-item-template">
<!-- Underscore Template for log files display box -->
<div id="log-display-panel">
<table>
<% for(var log in logs) { %>
<tr class="log-item">
<td class="log-line">
<%= get_index(log, page) %>
</td>
<td class="log-desc">
<%= logs[log] %>
</td>
</tr>
<% } %>
</table>
</div>
</script>
<script src="assets/custom.js" type="text/javascript"></script>
</body>
</html>