Skip to content

Commit

Permalink
[#2939] Show public/private capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 3, 2012
1 parent 81007ae commit 2954167
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/app_globals.py
Expand Up @@ -140,7 +140,7 @@ def _check_uptodate(self):

def _init(self):
self.favicon = config.get('ckan.favicon', '/images/icons/ckan.ico')
facets = config.get('search.facets', 'groups tags res_format license')
facets = config.get('search.facets', 'groups tags res_format license capacity')
self.facets = facets.split()

# has been setup in load_environment():
Expand Down
4 changes: 4 additions & 0 deletions ckan/templates/organization/read.html
Expand Up @@ -36,6 +36,10 @@ <h2 class="module-heading"><i class="icon-large icon-user"></i> {{ _('Administra
</ul>
</section>

{% if h.user_in_org_or_group(c.group_dict.id) %}
{{ h.snippet('snippets/facet_list.html', title='Visibility', name='capacity', extras={'id':c.group_dict.id}) }}
{% endif %}

{{ h.snippet('snippets/facet_list.html', title='Tags', name='tags', extras={'id':c.group_dict.id}) }}
{{ h.snippet('snippets/facet_list.html', title='Formats', name='res_format', extras={'id':c.group_dict.id}) }}
{% endblock %}
Expand Down

0 comments on commit 2954167

Please sign in to comment.