Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-2375-demo-theme' of github.com:okfn/ckan into f…
…eature-2375-demo-theme
- Loading branch information
Showing
4 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
{% if pkg_dict.license_id %} | ||
{% if not text_only %} | ||
<section class="module module-narrow module-shallow license"> | ||
<h2 class="module-heading"><i class="icon-medium icon-lock"></i> License</h2> | ||
<p class="module-content"> | ||
{% endif %} | ||
{% if 'license_url' in pkg_dict %} | ||
{% if not text_only %} | ||
<section class="module module-narrow module-shallow license"> | ||
<h2 class="module-heading"><i class="icon-medium icon-lock"></i> License</h2> | ||
<p class="module-content"> | ||
{% endif %} | ||
{% if 'license_url' in pkg_dict %} | ||
<a href="{{ pkg_dict.license_url }}" rel="dc:rights">{{ pkg_dict.license_title }}</a> | ||
{% else %} | ||
<span property="dc:rights">{{ pkg_dict.license_title }}</span> | ||
{% endif %} | ||
{% if not text_only %} | ||
{% if pkg_dict.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]" /> | ||
</a> | ||
{% else %} | ||
<span class="closed">{{ h.icon('lock') }}</span> | ||
{% endif %} | ||
</p> | ||
</section> | ||
{% endif %} | ||
{% else %} | ||
<span property="dc:rights">{{ pkg_dict.license_title }}</span> | ||
{% endif %} | ||
{% if not text_only %} | ||
{% if pkg_dict.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]" /> | ||
</a> | ||
{% else %} | ||
<span class="closed">{{ h.icon('lock') }}</span> | ||
{% endif %} | ||
</p> | ||
</section> | ||
{% endif %} | ||
{% elif text_only %} | ||
{{ _('No Licence Provided') }} | ||
{% endif %} |