Skip to content

Commit

Permalink
about page cleanup for resourcemanager
Browse files Browse the repository at this point in the history
  • Loading branch information
leifj committed Nov 29, 2017
1 parent d24b937 commit 6eac076
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pyff/templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ <h4 class="modal-title" id="myModalLabel">{{ gettext('Pipeline Souurce') }}</h4>
</div>
</div>
<div class="tab-pane" id="repo">
{% for uri in repo.store.collections() %}
{% set info = repo.summary(uri) %}
{% for resource in repo.rm.walk() %}
{% set info = resource.info %}
<div class="panel panel-{{info['Status']}}">
<div class="panel-heading" title="{{uri|trim}}">{{ uri|trim|truncate(60) }}</div>
<div class="panel-heading" title="{{resource.url|trim}}">{{ resource.url|trim|truncate(60) }}</div>
{% if info['Description'] %}
<div class="panel-body small">{{ info['Description'] }}</div>
{% endif %}
<table class="table table-condensed">
{% for k,v in info.iteritems() %}
{% for k,v in info.items() %}
{% if k and v and not k in ('URL','Description','Validation Errors','Status') %}
<tr>
<th>{{ k|trim|truncate(20) }}</th>
Expand All @@ -77,7 +77,7 @@ <h4 class="modal-title" id="myModalLabel">{{ gettext('Pipeline Souurce') }}</h4>
{{ v|trim|truncate(60) }}
{% elif v is mapping %}
<dl class="dl-horizontal">
{% for h,hv in v.iteritems() %}
{% for h,hv in v.items() %}
<dt>{{h|trim}}</dt>
<dd>{{hv|trim|truncate(30)}}</dd>
{% endfor %}
Expand All @@ -96,7 +96,7 @@ <h4 class="modal-title" id="myModalLabel">{{ gettext('Pipeline Souurce') }}</h4>
</table>
{% if info['Validation Errors'] %}
<table class="table">
{% for ei,ee in info['Validation Errors'].iteritems() %}
{% for ei,ee in info['Validation Errors'].items() %}
<tr>
<th>{{ei|trim|truncate(30)}}</th>
<td>{{ee|trim}}</td>
Expand Down

0 comments on commit 6eac076

Please sign in to comment.