Skip to content

Commit

Permalink
[#1072] Adds organization title or org context on package read pages
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Jul 2, 2013
1 parent e6b119d commit 5aefeb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckan/templates/package/read_base.html
Expand Up @@ -68,7 +68,7 @@ <h1 class="heading">{{ pkg.title or pkg.name }}</h1>

{% block package_organization %}
{% if pkg.organization %}
{% snippet "snippets/organization.html", organization=pkg.organization %}
{% snippet "snippets/organization.html", organization=pkg.organization, has_context_title=true %}
{% endif %}
{% endblock %}

Expand Down
5 changes: 4 additions & 1 deletion ckan/templates/snippets/organization.html
Expand Up @@ -12,7 +12,10 @@
#}

{% with truncate=truncate or 0, url=h.url_for(controller='organization', action='read', id=organization.name) %}
<div class="module context-info">
<div class="module module-narrow module-shallow context-info">
{% if has_context_title %}
<h2 class="module-heading"><i class="icon-building"></i> {{ _('Organization') }}</h2>
{% endif %}
<section class="module-content">
<div class="image">
<a href="{{ url }}">
Expand Down

0 comments on commit 5aefeb3

Please sign in to comment.