aboutsummaryrefslogtreecommitdiffstats
path: root/torouterui/templates/processes.html
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-09-15 22:50:14 +0200
committerficus <ficus@robocracy.org>2012-09-15 22:50:14 +0200
commitced83335a5a338cb9c24956b96da526465d94df8 (patch)
treeb345cd21dfcbb9e660aceb2433c92bd50848938f /torouterui/templates/processes.html
parent57a1e70dee45f5cd9493d6d23f8fc7b6435d5388 (diff)
downloadtui-ced83335a5a338cb9c24956b96da526465d94df8.tar.gz
tui-ced83335a5a338cb9c24956b96da526465d94df8.zip
refactor to distributable format
Diffstat (limited to 'torouterui/templates/processes.html')
-rw-r--r--torouterui/templates/processes.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/torouterui/templates/processes.html b/torouterui/templates/processes.html
new file mode 100644
index 0000000..2e35162
--- /dev/null
+++ b/torouterui/templates/processes.html
@@ -0,0 +1,28 @@
+{% import "lib.html" as lib %}
+{% extends "base.html" %}
+{% block body %}
+<h3>System Running Process List</h3>
+<table class="table table-condensed">
+ <tr>
+ <th>User
+ <th>PID
+ <th>%CPU
+ <th>%MEM
+ <th>Status
+ <th>Started
+ <th>Time
+ <th>Command
+{% for proc in process_list %}
+ <tr style="font-family: monospace;">
+ <td>{{ proc.user }}
+ <td>{{ proc.pid}}
+ <td>{{ proc.perc_cpu }}
+ <td>{{ proc.perc_mem }}
+ <td>{{ proc.status_code }}
+ <td>{{ proc.started }}
+ <td>{{ proc.time }}
+ <td><div style="height: 1.5em; overflow:hidden;">{{ proc.command }}</div>
+{% endfor %}
+</table>
+
+{% endblock %}