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

52 lines
2.0 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
<i>Note: Times are in UTC for now - todo - JS front end format<br/></i>
<table class="pure-table pure-table-striped watch-table">
4 years ago
<thead>
<tr>
<th>#</th>
<th></th>
4 years ago
<th>Last Checked</th>
4 years ago
<th>Last Changed</th>
4 years ago
<th></th>
4 years ago
</tr>
</thead>
<tbody>
{% for watch in watches %}
<tr id="{{ watch.uuid }}" class="{{ loop.cycle('pure-table-odd', 'pure-table-even') }} {% if watch.last_error is defined and watch.last_error != False %}error{% endif %}">
4 years ago
<td>{{ loop.index }}</td>
<td>{% if watch.title is not none %}{{ watch.title }}{% else %}{{ watch.url }}{% endif %}<a class="external" target=_blank href="{{ watch.url }}"></a>
{% if watch.last_error is defined and watch.last_error != False %}
<div class="fetch-error">{{ watch.last_error }}</div>
{% endif %}
</td>
<td>{{watch|format_last_checked_time}}
</td>
4 years ago
<td>{{watch.last_changed|format_timestamp_timeago}}</td>
4 years ago
<td><a href="/api/checknow?uuid={{ watch.uuid}}" class="pure-button button-small pure-button-primary">Recheck</a> <button type="submit" class="pure-button button-small pure-button-primary">Delete</button></td>
4 years ago
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}