Skip to content

Commit

Permalink
[2285] Added branded link back to resource page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Murray committed Apr 24, 2012
1 parent 9928c10 commit 8eb071c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ckan/templates/_snippet/data-viewer-embed-branded-link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip=""
>

<p>Powered by <a href="${h.url_for(controller='package', action='resource_read', id=c.package.id, resource_id=c.resource.id)}">

${g.site_title}
<img width="64" src="${h.url_for_static(g.site_logo)}" alt="${g.site_title} Logo" title="${g.site_title} Logo" id="logo" />
</a>
</p>

</html>

1 change: 1 addition & 0 deletions ckan/templates/package/resource_embedded_dataviewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<div class="resource-preview">
<div id="ckanext-datapreview"></div>
</div>
<xi:include href="../_snippet/data-viewer-embed-branded-link.html" />
</div>

<py:def function="optional_footer">
Expand Down

0 comments on commit 8eb071c

Please sign in to comment.