Skip to content

Commit

Permalink
[2375] Add empty related box as an example
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed May 16, 2012
1 parent a35b35c commit 226f9ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ckan/public/base/less/module.less
Expand Up @@ -90,6 +90,12 @@
display: block;
}

// Action

.module .action {
text-align: center;
}

// Secondary column specific

.secondary .module {
Expand Down
13 changes: 11 additions & 2 deletions ckan/templates/package/read.html
Expand Up @@ -143,12 +143,21 @@ <h2 class="heading">Social</h2>
</ul>
</section>

<section class="module info related">
<h2 class="heading">Related</h2>
<section class="module info related" py:if="True">
<h2 class="heading">Related <a class="action" href="#">Add Related</a></h2>
<p class="content">Some interesting summary of this featured item. This
may or may not have a slideshow.</p>
</section>

<section class="module info related empty" py:if="True">
<h2 class="heading">Related</h2>
<div class="content">
<p>No apps, ideas, news stories or images have been
related to this dataset yet, why not add one now?</p>
<p class="action"><a class="btn" href="#">Add Item</a></p>
</div>
</section>

<section py:if="c.pkg.license_id" class="module info license">
<h2 class="heading">License</h2>
<p class="content">
Expand Down

0 comments on commit 226f9ec

Please sign in to comment.