Skip to content

Commit

Permalink
Merge branch '740-resource-url'
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Apr 12, 2013
2 parents bbb15f9 + 48da70a commit 40edf3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ckan/public/base/less/prose.less
Expand Up @@ -68,3 +68,9 @@
border-bottom-right-radius: @radius;
}
}

.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2 changes: 1 addition & 1 deletion ckan/templates/package/resource_read.html
Expand Up @@ -46,7 +46,7 @@
{% block resource_read_title %}<h1 class="page-heading">{{ h.resource_display_name(res) | truncate(50) }}</h1>{% endblock %}
{% block resource_read_url %}
{% if res.url %}
<p class="muted">{{ _('URL:') }} <a href="{{ res.url }}">{{ res.url }}</a></p>
<p class="muted ellipsis">{{ _('URL:') }} <a href="{{ res.url }}" title="{{ res.url }}">{{ res.url }}</a></p>
{% endif %}
{% endblock %}
<div class="prose notes" property="rdfs:label">
Expand Down

0 comments on commit 40edf3a

Please sign in to comment.