Add systemd start/stop for transmission.service
This commit is contained in:
parent
385694da91
commit
66acf6b421
7 changed files with 85 additions and 92 deletions
9
templates/transmission.html
Normal file
9
templates/transmission.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{% block content %}
|
||||
{% if is_active %}
|
||||
<h3>Transmission is running!</h3>
|
||||
<button hx-post="/transmission/stop" hx-target="#content">Stop now!</button>
|
||||
{% else %}
|
||||
<h3>Transmission is stopped!</h3>
|
||||
<button hx-post="/transmission/start" hx-target="#content">Start now!</button>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue