system-metrics 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,27 +1,31 @@
|
|
1
1
|
<% set_title "System Metrics Administration" -%>
|
2
2
|
<% set_page_title "Administration" -%>
|
3
|
-
|
4
|
-
|
5
|
-
<%=
|
6
|
-
|
7
|
-
|
8
|
-
</
|
3
|
+
<% if @categories.all.size > 0 -%>
|
4
|
+
<div id="menu-bar">
|
5
|
+
<%= form_tag "#{metrics_path}/all", :method => :delete do -%>
|
6
|
+
<%= submit_tag 'Delete All' %>
|
7
|
+
<% end -%>
|
8
|
+
<h2>Metrics</h2>
|
9
|
+
</div>
|
9
10
|
|
10
|
-
<table>
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
</table>
|
11
|
+
<table>
|
12
|
+
<thead>
|
13
|
+
<tr><th>Category</th><th>Count</th><th>Action</th></tr>
|
14
|
+
<thead>
|
15
|
+
<tbody>
|
16
|
+
<% for category in @categories -%>
|
17
|
+
<tr>
|
18
|
+
<td><%= category.category.titleize %></td>
|
19
|
+
<td><%= category.count %></td>
|
20
|
+
<td>
|
21
|
+
<%= form_tag metric_path(category.category), :method => :delete do %>
|
22
|
+
<%= submit_tag 'Delete Category' %>
|
23
|
+
<% end -%>
|
24
|
+
</td>
|
25
|
+
</tr>
|
26
|
+
<% end -%>
|
27
|
+
</tbody>
|
28
|
+
</table>
|
29
|
+
<% else -%>
|
30
|
+
<p>No metrics found</p>
|
31
|
+
<% end -%>
|