Skip to content

Commit

Permalink
[master,resource/read][xs]: put open data button after license again …
Browse files Browse the repository at this point in the history
…as o/w css is wrong.
  • Loading branch information
rufuspollock committed Mar 13, 2012
1 parent 8ced6f6 commit 897f012
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ckan/templates/package/resource_read.html
Expand Up @@ -105,6 +105,13 @@
</dd>
<dt>Licence</dt>
<dd>
<py:choose test="">
<span py:when="c.pkg.license and c.pkg.license.url"><a
href="${c.pkg.license.url}" rel="dc:rights">${c.pkg.license.title.split('::')[-1]}</a></span>
<span py:when="c.pkg.license" property="dc:rights">${c.pkg.license.title}</span>
<span py:when="c.pkg.license_id" property="dc:rights">${c.pkg.license_id}</span>
<span py:when="not(c.pkg.license)">License unknown</span>
</py:choose>
<py:if test="c.pkg.isopen()">
<a href="http://opendefinition.org/okd/" title="This dataset satisfies the Open Definition.">
<img class="open-data" src="http://assets.okfn.org/images/ok_buttons/od_80x15_blue.png" alt="[Open Data]" />
Expand All @@ -115,14 +122,6 @@
${h.icon('lock')}
</span>
</py:if>

<py:choose test="">
<span py:when="c.pkg.license and c.pkg.license.url"><a
href="${c.pkg.license.url}" rel="dc:rights">${c.pkg.license.title.split('::')[-1]}</a></span>
<span py:when="c.pkg.license" property="dc:rights">${c.pkg.license.title}</span>
<span py:when="c.pkg.license_id" property="dc:rights">${c.pkg.license_id}</span>
<span py:when="not(c.pkg.license)">License unknown</span>
</py:choose>
</dd>
</dl>
</div>
Expand Down

0 comments on commit 897f012

Please sign in to comment.