Skip to content

Commit

Permalink
[templates] Add cached url link to new resource listing
Browse files Browse the repository at this point in the history
if available
  • Loading branch information
John Glover committed Dec 20, 2011
1 parent 30b501f commit bff538b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/public/css/style.css
Expand Up @@ -1149,6 +1149,9 @@ body.package.read h3 {
.dataset-resource p {
margin: 0;
}
.resource-url-cached {
font-size: 0.9em;
}

body.package.read .resource-information {
color: #808080;
Expand Down
3 changes: 3 additions & 0 deletions ckan/templates/package/read_core.html
Expand Up @@ -31,6 +31,9 @@ <h3>Resources</h3>
<a class="resource-url-analytics" href="${res.get('url', '')}" rel="dcat:accessURL" target="_blank">
${res.get('url', '')}
</a>
<a py:if="res.get('cache_url')" class="resource-url-cached" href="${res.get('cache_url')}" target="_blank">
[cached]
</a>
</p>
</div>
</py:for>
Expand Down

0 comments on commit bff538b

Please sign in to comment.