Merge branch 'release-v2.0' of github.com:okfn/ckanext-harvest into release-v2.0

This commit is contained in:
amercader 2012-08-14 11:40:35 +01:00
commit a76140650d
2 changed files with 1 additions and 2 deletions

View File

@ -183,7 +183,6 @@ class ViewController(BaseController):
try: try:
context = {'model':model, 'user':c.user} context = {'model':model, 'user':c.user}
c.source = get_action('harvest_source_show')(context, {'id':id}) c.source = get_action('harvest_source_show')(context, {'id':id})
c.page = Page( c.page = Page(
collection=c.source['status']['packages'], collection=c.source['status']['packages'],
page=request.params.get('page', 1), page=request.params.get('page', 1),

View File

@ -108,7 +108,7 @@
<ul> <ul>
{% for error in c.source.status.last_harvest_errors.object %} {% for error in c.source.status.last_harvest_errors.object %}
<li> <li>
<div>GUID <a href="${g.site_url}/harvest/object/${error.object_id}">${error.object_guid}</a></div> <div>GUID <a href="{{g.site_url}}/harvest/object/{{error.object_id}}">{{error.object_guid}}</a></div>
{% set lines = error['message'].split('\n') %} {% set lines = error['message'].split('\n') %}
{% for line in lines %} {% for line in lines %}
<div>{{ line }}</div> <div>{{ line }}</div>