Add systemd start/stop for transmission.service

This commit is contained in:
Vladan Popovic 2024-10-27 01:39:20 +02:00
parent 385694da91
commit 66acf6b421
7 changed files with 85 additions and 92 deletions

View file

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Search and download torrents directly to mediacenter</title>
<script src="https://unpkg.com/htmx.org@2.0.0" integrity="sha384-wS5l5IKJBvK6sPTKa2WZ1js3d947pvWXbPJ1OmWfEuxLgeHcEbjUUA5i9V5ZkpCw" crossorigin="anonymous"></script>
<link href="{{ url_for('static', path='/style.css') }}" rel="stylesheet">
<link href="/static/style.css" rel="stylesheet">
</head>
<body>
<menu>

View 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 %}