fix broken show form
This commit is contained in:
parent
7efca28c22
commit
4b4e5dba62
|
@ -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),
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{% for error in c.source.status.last_harvest_errors.gather %}
|
{% for error in c.source.status.last_harvest_errors.gather %}
|
||||||
<li>
|
<li>
|
||||||
{% set lines = error['message'].split('\n') %}
|
{% set lines = error.split('\n') %}
|
||||||
{% for line in lines %}
|
{% for line in lines %}
|
||||||
<div>{{ line }}</div>
|
<div>{{ line }}</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -102,7 +102,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>
|
||||||
|
|
Loading…
Reference in New Issue