Skip to content

Commit

Permalink
Update SVGs
Browse files Browse the repository at this point in the history
  • Loading branch information
R2Boyo25 committed May 2, 2023
1 parent 03190de commit f70b0a3
Show file tree
Hide file tree
Showing 11 changed files with 209 additions and 17 deletions.
44 changes: 44 additions & 0 deletions static/svg/add.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions static/svg/chart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions static/svg/list.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions static/svg/pause.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions static/svg/play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions static/svg/remove.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions static/svg/restart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions templates/bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
<body>
<div class="sidebar">
<div id="sidebuttons">
<a href="/"><img src="/source/home.svg" /></a>
<a href="/list"><img src="/source/details.svg" /></a>
<a href="/list/new"><img src="/source/details-add.svg" /></a>
<a href="/reload"><img src="/source/reload.svg"></a>
<a href="/"><img src="/source/svg/chart.svg" /></a>
<a href="/list"><img src="/source/svg/list.svg" /></a>
<a href="/list/new"><img src="/source/svg/add.svg" /></a>
{% block sidebuttons %}
{% endblock %}
</div>
Expand Down
14 changes: 7 additions & 7 deletions templates/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"Exited normally") if not proc['running'] else ("Paused" if proc['paused'] else "Running") }}</td>
<td>
{% if proc['paused'] %}
<a href="/unpause/{{proc['process']}}"><img src="/source/play.svg" /></a>
<a href="/restart/{{proc['process']}}"><img src="/source/restart.svg" /></a>
<a href="/kill/{{proc['process']}}"><img src="/source/kill.svg"></a>
<a href="/unpause/{{proc['process']}}"><img src="/source/svg/play.svg" /></a>
<a href="/restart/{{proc['process']}}"><img src="/source/svg/restart.svg" /></a>
<a href="/kill/{{proc['process']}}"><img src="/source/svg/remove.svg"></a>
{% elif proc['running'] %}
<a href="/restart/{{proc['process']}}"><img src="/source/restart.svg" /></a>
<a href="/kill/{{proc['process']}}"><img src="/source/kill.svg"></a>
<a href="/pause/{{proc['process']}}"><img src="/source/pause.svg"></a>
<a href="/restart/{{proc['process']}}"><img src="/source/svg/restart.svg" /></a>
<a href="/kill/{{proc['process']}}"><img src="/source/svg/remove.svg"></a>
<a href="/pause/{{proc['process']}}"><img src="/source/svg/pause.svg"></a>
{% else %}
<a href="/start/{{proc['process']}}"><img src="/source/play.svg" /></a>
<a href="/start/{{proc['process']}}"><img src="/source/svg/play.svg" /></a>
{% endif %}
</td>
</tr>
Expand Down
10 changes: 5 additions & 5 deletions templates/proc.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@

{% block sidebuttons %}
{% if running %}
<a href="/restart/{{proc}}"><img src="/source/restart.svg" /></a>
<a href="/kill/{{proc}}"><img src="/source/kill.svg"></a>
<a href="/restart/{{proc}}"><img src="/source/svg/restart.svg" /></a>
<a href="/kill/{{proc}}"><img src="/source/svg/remove.svg"></a>
{% if paused %}
<a href="/unpause/{{proc}}"><img src="/source/play.svg"></a>
<a href="/unpause/{{proc}}"><img src="/source/svg/play.svg"></a>
{% else %}
<a href="/pause/{{proc}}"><img src="/source/pause.svg"></a>
<a href="/pause/{{proc}}"><img src="/source/svg/pause.svg"></a>
{% endif %}
{% else %}
<a href="/start/{{proc}}"><img src="/source/play.svg" /></a>
<a href="/start/{{proc}}"><img src="/source/svg/play.svg" /></a>
{% endif %}
{% endblock %}
2 changes: 1 addition & 1 deletion villicus.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,4 +450,4 @@ def returnSourceFile(filename):

if __name__ == "__main__":
start()
app.run("0.0.0.0", port=4057)
app.run("0.0.0.0", port=4057, debug="--debug" in sys.argv)

0 comments on commit f70b0a3

Please sign in to comment.