Skip to content

Commit

Permalink
[#2939] Template show private on package read
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 3, 2012
1 parent 8ecf712 commit c841455
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckan/templates/package/read.html
Expand Up @@ -79,6 +79,12 @@ <h1>{{ pkg.title or pkg.name }}
{% endif %}
{% endblock %}

{% block package_private %}
{% if pkg.private %}
{% snippet "snippets/private.html" %}
{% endif %}
{% endblock %}

{% block package_groups %}
{% for group in pkg.groups %}
{% snippet "snippets/group.html", group=group, truncate=70 %}
Expand Down
4 changes: 4 additions & 0 deletions ckan/templates/snippets/private.html
@@ -0,0 +1,4 @@

<section class="module module-narrow module-shallow group">
<h2 class="module-heading">{{ _('Private') }}</h2>
</section>

0 comments on commit c841455

Please sign in to comment.