Skip to content

Commit

Permalink
[2442] Add Groups module to dataset page
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed May 29, 2012
1 parent 17ec4cb commit d91ab06
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ckan/public/base/less/module.less
Expand Up @@ -105,3 +105,15 @@
padding-right: @gutter-small-x;
}
}

// GROUP

.group .content img {
margin: 0 -5px 5px;
max-width: initial;
}

.group .content h3 {
font-size: 14px;
line-height: 1.3;
}
9 changes: 9 additions & 0 deletions ckan/templates/package/read.html
Expand Up @@ -124,6 +124,15 @@ <h3>Additional Info</h3>
</div>

<aside class="secondary">
<!--! TODO: Check to see if the resource has a group and display it. -->
<section class="module info group" py:if="True">
<div class="content">
<img src="http://placehold.it/200x125" width="200" height="125" />
<h3>Group name here</h3>
<p>Description text here…</p>
</div>
</section>

<section class="module subscribe">
<h2 class="heading"><i class="ckan-icon ckan-icon-add"></i> Subscribe</h2>
<ul class="nav nav-simple">
Expand Down

0 comments on commit d91ab06

Please sign in to comment.