Skip to content

Commit

Permalink
[#1302] Removes mentions of 'no description' from templates
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Dec 24, 2013
1 parent 46752e5 commit 87fc080
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 28 deletions.
2 changes: 0 additions & 2 deletions ckan/templates/group/about.html
Expand Up @@ -7,8 +7,6 @@ <h1>{% block page_heading %}{{ c.group_dict.display_name }}{% endblock %}</h1>
{% block group_description %}
{% if c.group_dict.description %}
{{ h.render_markdown(c.group_dict.description) }}
{% else %}
<p class="empty">{{ _('There is no description for this group') }}</p>
{% endif %}
{% endblock %}

Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/group/snippets/group_item.html
Expand Up @@ -23,8 +23,6 @@ <h3 class="media-heading">{{ group.display_name }}</h3>
{% block description %}
{% if group.description %}
<p>{{ h.markdown_extract(group.description, extract_length=80) }}</p>
{% else %}
<p class="empty">{{ _('This group has no description') }}</p>
{% endif %}
{% endblock %}
{% block datasets %}
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/group/snippets/info.html
Expand Up @@ -11,8 +11,6 @@ <h1 class="heading">{{ group.display_name }}</h1>
{{ h.markdown_extract(group.description, 180) }}
{% link_for _('read more'), controller='group', action='about', id=group.name %}
</p>
{% else %}
<p class="empty">{{ _('There is no description for this group') }}</p>
{% endif %}
{% if show_nums %}
<div class="nums">
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/organization/about.html
Expand Up @@ -7,8 +7,6 @@ <h1>{% block page_heading %}{{ c.group_dict.display_name }}{% endblock %}</h1>
{% block organization_description %}
{% if c.group_dict.description %}
{{ h.render_markdown(c.group_dict.description) }}
{% else %}
<p class="empty">{{ _('There is no description for this organization') }}</p>
{% endif %}
{% endblock %}
{% block organization_extras %}
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/organization/bulk_process.html
Expand Up @@ -77,8 +77,6 @@ <h3 class="dataset-heading">
</h3>
{% if notes %}
<p>{{ notes|urlize }}</p>
{% else %}
<p class="empty">{{ _("This dataset has no description") }}</p>
{% endif %}
</td>
</tr>
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/organization/snippets/organization_item.html
Expand Up @@ -22,8 +22,6 @@ <h3 class="media-heading">{{ organization.display_name }}</h3>
{% block description %}
{% if organization.description %}
<p>{{ h.markdown_extract(organization.description, extract_length=80) }}</p>
{% else %}
<p class="empty">{{ _('This organization has no description') }}</p>
{% endif %}
{% endblock %}
{% block datasets %}
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/package/resource_read.html
Expand Up @@ -61,8 +61,6 @@
<div class="prose notes" property="rdfs:label">
{% if res.description %}
{{ h.render_markdown(res.description) }}
{% else %}
<p class="empty">{{ _('There is no description for this resource') }}</p>
{% endif %}
{% if not res.description and c.package.notes %}
<h3>{{ _('From the dataset abstract') }}</h3>
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/package/snippets/package_context.html
Expand Up @@ -6,8 +6,6 @@ <h1 class="heading">{{ pkg.title or pkg.name }}</h1>
{{ h.markdown_extract(pkg.notes, 180) }}
{% link_for _('read more'), controller='package', action='about', id=pkg.name %}
</p>
{% else %}
<p class="empty">{{ _('There is no description for this dataset') }}</p>
{% endif %}
<div class="nums">
<dl>
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/package/snippets/resource_item.html
Expand Up @@ -12,8 +12,6 @@
<p class="description">
{% if res.description %}
{{ h.markdown_extract(res.description, extract_length=80) }}
{% else %}
<span class="empty">{{ _('No description for this resource') }}</span>
{% endif %}
</p>
{% block resource_item_explore %}
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/related/snippets/related_item.html
Expand Up @@ -19,8 +19,6 @@
<h3 class="media-heading">{{ related.title }}</h3>
{% if related.description %}
<div class="prose">{{ h.render_markdown(related.description) }}</div>
{% else %}
<p class="empty">{{ _('This item has no description') }}</p>
{% endif %}
<a class="media-view" href="{{ related.url }}" target="_blank" title="{{ tooltip }}">
<span>{{ tooltip }}</span>
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/snippets/group.html
Expand Up @@ -20,8 +20,6 @@
<h3 class="media-heading"><a href={{ url }}>{{ group.title or group.name }}</a></h3>
{% if group.description %}
<p>{{ h.markdown_extract(group.description, truncate) }}</p>
{% else %}
<p class="empty">{{ _('There is no description for this group') }}</p>
{% endif %}
</div>
</div>
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/snippets/group_item.html
Expand Up @@ -14,8 +14,6 @@ <h3 class="media-heading"><a href="{{ url }}">{{ group.title or group.name }}</a
{% else %}
<p>{{ h.markdown_extract(group.description, truncate)|urlize }}</p>
{% endif %}
{% else %}
<p class="empty">{{ _('There is no description for this group') }}</p>
{% endif %}
</header>
{% set list_class = "unstyled dataset-list" %}
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/snippets/organization_item.html
Expand Up @@ -12,8 +12,6 @@ <h3 class="media-heading"><a href={{ url }}>{{ organization.title or organizatio
{% else %}
<p>{{ h.markdown_extract(organization.description, truncate)|urlize }}</p>
{% endif %}
{% else %}
<p class="empty">{{ _('There is no description for this organization') }}</p>
{% endif %}
</header>
{% set list_class = "unstyled dataset-list" %}
Expand Down
2 changes: 0 additions & 2 deletions ckan/templates/snippets/package_item.html
Expand Up @@ -41,8 +41,6 @@ <h3 class="dataset-heading">
{% endif %}
{% if notes %}
<div>{{ notes|urlize }}</div>
{% else %}
<p class="empty">{{ _("This dataset has no description") }}</p>
{% endif %}
</div>
{% if package.resources and not hide_resources %}
Expand Down

0 comments on commit 87fc080

Please sign in to comment.