Skip to content

Commit

Permalink
[#2599] Add media grid to primer
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Jun 26, 2012
1 parent e471c30 commit 82d5025
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ckan/templates/development/primer.html
Expand Up @@ -51,10 +51,17 @@ <h3>Heading 3</h3>

{% snippet 'snippets/package_grid.html', packages=[
{'name': "test", 'title': 'Test', 'notes': lipsum(1), 'tracking_summary':{'recent': 10}},
{'name': "test", 'title': 'Test', 'notes': lipsum(1), 'tracking_summary':{'recent': 5}},
{'name': "test", 'title': 'Test', 'notes': lipsum(0), 'tracking_summary':{'recent': 5}},
{'name': "test", 'title': 'Test', 'notes': lipsum(1), 'tracking_summary':{'recent': 10}},
{'name': "test", 'title': 'Test', 'notes': lipsum(1), 'tracking_summary':{'recent': 10}}
] %}

{% snippet 'development/snippets/media_grid.html', groups=[
{'name': "test", 'display_name': 'Test', 'type': 'group', 'description': lipsum(0), 'packages': 0},
{'name': "test", 'display_name': 'Test', 'type': 'group', 'description': lipsum(1), 'packages': 1},
{'name': "test", 'display_name': 'Test', 'type': 'group', 'description': lipsum(1), 'packages': 10},
{'name': "test", 'display_name': 'Test', 'type': 'group', 'description': lipsum(1), 'packages': 200}
] %}
</div>

{% include "footer.html" %}
Expand Down
5 changes: 5 additions & 0 deletions ckan/templates/development/snippets/media_grid.html
@@ -0,0 +1,5 @@
<section class="module" style="width: 650px">
<div class="module-content">
{% snippet 'group/snippets/group_list.html', groups=groups %}
</div>
</section>

0 comments on commit 82d5025

Please sign in to comment.