RemoteSystemctl/views/index.slim

37 lines
994 B
Plaintext

html
head
title
| Upupup
body
style
| .state-color-start {
| color: #96D589 !important;
| }
| .state-color-stop {
| color: #E3566A !important;
| }
| .state-color-default {
| color: #CCCCCC;
| }
table
thead
tr
th="Name"
th="Current state"
th
th
tbody
- services.each do |service|
tr(class="state-color-default state-color-#{service.state}")
td=service.name
td=service.state
td
form(action="/#{service.name}/start" method="POST")
input(type="submit" value="Start")
input(type="password" placeholder="Password" name="password")
td
form(action="/#{service.name}/stop" method="POST")
input(type="submit" value="Stop")
input(type="password" placeholder="Password" name="password")
tfoot