-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace "Licence" to "" (use an extension template)
- Loading branch information
toavina
committed
Sep 4, 2024
1 parent
c811f2f
commit f693bb9
Showing
3 changed files
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% ckan_extends %} | ||
|
||
{% block secondary_content %} | ||
|
||
{% block resources_list %} | ||
{% snippet "package/snippets/resources.html", pkg=pkg, active=res.id, action='read' %} | ||
{% endblock %} | ||
|
||
<tr> | ||
<th scope="row"></th> | ||
<td><p class="licence-space">{{ _('License') }}{% snippet "snippets/resource_license.html", pkg_dict=pkg, text_only=True %}</p></td> | ||
</tr> | ||
{% endblock %} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends 'snippets/license.html' %} | ||
|
||
{% block license %} | ||
{% if text_only %} | ||
{% set text_license = license_string(pkg_dict) | trim %} | ||
{% if 'License not specified' in text_license %} | ||
{{ 'not specified' }} | ||
{% else %} | ||
{{ text_license }} | ||
{% endif %} | ||
{% else %} | ||
{% block license_wrapper %} | ||
{{ super() }} | ||
{% endblock %} | ||
{% endif %} | ||
{% endblock %} |