harvester-d4science/templates/ckanext/harvest/index.html

55 lines
1.7 KiB
HTML

<html xmlns:py="http://genshi.edgewall.org/"
xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="">
<py:def function="page_title">Harvesting Sources</py:def>
<py:def function="optional_head">
<link type="text/css" rel="stylesheet" media="all" href="/ckanext/harvest/style.css" />
</py:def>
<div py:match="content">
<div class="harvest-content">
<h1>Harvesting Sources</h1>
<a id="new-harvest-source" href="harvest/create">Add a harvesting source</a>
<py:choose>
<py:when test="c.sources">
<table id="harvest-sources">
<tr>
<th></th>
<th></th>
<th></th>
<th>URL</th>
<th>Type</th>
<th>Active</th>
<th>Statistics</th>
<th>Next Harvest</th>
<th>Created</th>
</tr>
<tr py:for="source in c.sources">
<td>${h.link_to('view', 'harvest/' + source.id)}</td>
<td>${h.link_to('edit', 'harvest/' + source.id + '/edit')}</td>
<td>${h.link_to('refresh', 'harvest/' + source.id + '/refresh')}</td>
<td>${source.url}</td>
<td>${source.type}</td>
<td>${source.active}</td>
<td>${source.status.overall_statistics.added} pkgs ${source.status.overall_statistics.errors} errors</td>
<td>${source.status.next_harvest}</td>
<td>${source.created}</td>
</tr>
</table>
</py:when>
<py:otherwise>
<div id="no-harvest-sources">No harvest sources defined yet.</div>
</py:otherwise>
</py:choose>
</div>
</div>
<xi:include href="../../layout.html" />
</html>