You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
changedetection.io/backend/templates/watch-overview.html

46 lines
1.4 KiB

4 years ago
{% extends 'base.html' %}
{% block content %}
<div class="box">
4 years ago
<form class="pure-form" action="/api/add" method="POST">
4 years ago
<fieldset>
<legend>Add new change detection watch</legend>
4 years ago
<input type="url" placeholder="https://..." name="url"/>
<input type="text" placeholder="tag" size="10" name="tag"/>
4 years ago
<button type="submit" class="pure-button pure-button-primary">Save</button>
</fieldset>
4 years ago
<!-- add extra stuff, like do a http POST and send headers -->
<!-- user/pass r = requests.get('https://api.github.com/user', auth=('user', 'pass')) -->
4 years ago
</form>
4 years ago
<!-- make a nice list of tags here to click on -->
4 years ago
<table class="pure-table pure-table-striped">
4 years ago
<thead>
<tr>
<th>#</th>
<th>URL</th>
<th>Last Checked</th>
4 years ago
<th>Last Changed</th>
4 years ago
<th>op</th>
</tr>
</thead>
<tbody>
{% for watch in watches %}
4 years ago
<tr class="{{ loop.cycle('pure-table-odd', 'pure-table-even') }}">
<td>{{ loop.index }}</td>
4 years ago
<td>{{ watch.url }}</td>
4 years ago
<td>{{watch|format_last_checked_time}}</td>
<td>{{watch.last_changed|format_timestamp}}</td>
<td><a href="/api/checknow?uuid={{ watch.uuid}}" class="pure-button pure-button-primary">Recheck</a> <button type="submit" class="pure-button pure-button-primary">Delete</button></td>
4 years ago
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}