Skip to content

Commit

Permalink
resource listing on dataset page.
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Jul 15, 2011
1 parent d67dbaf commit 079a699
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion datahub/pager.py
Expand Up @@ -58,6 +58,5 @@ def __iter__(self):
return query.all().__iter__()

def __len__(self):
print self.query.count()
return self.query.count()

7 changes: 7 additions & 0 deletions datahub/templates/dataset/view.html
@@ -1,4 +1,5 @@
{% from "resource/parts.html" import create_form as resource_create_form %}
{% from "resource/parts.html" import mainbar_list_item as resource_mainbar_list_item %}
{% extends "layout.html" %}

{% block head %}
Expand Down Expand Up @@ -26,6 +27,12 @@ <h1><img src="{{ dataset.owner.email | gravatar(size=32) }}" />
<div class="mainbar">
<div class="box">
{{ dataset.summary }}

<hr/>

{% for resource in dataset.resources %}
{{ resource_mainbar_list_item(resource) }}
{% endfor %}
</div>
</div>
{% endblock %}
Expand Down

0 comments on commit 079a699

Please sign in to comment.