forked from cityofsurrey/ckanext-surrey
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from datacats/master
Compatibility issues with CKAN 2.4 and other minor fixes
- Loading branch information
Showing
14 changed files
with
105 additions
and
62 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,4 +1,4 @@ | ||
{% ckan_extends %} | ||
{% ckan_extends %} | ||
|
||
|
||
{% block meta %} | ||
|
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
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
49 changes: 18 additions & 31 deletions
49
ckanext/surrey/templates/package/snippets/resource_item.html
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,35 +1,22 @@ | ||
{% ckan_extends %} | ||
|
||
{% set geo_formats = [ 'csv', 'json', 'geojson', 'kml', 'kmz', 'shp', 'dwg', 'fgdb'] %} | ||
{% set geo_formats = [ 'csv', 'json', 'geojson', 'kml', 'kmz', 'shp', 'dwg', 'fgdb', 'sid', 'tiff', 'geotiff', 'tif', 'geotif'] %} | ||
|
||
{% block resource_item_title %} | ||
<span class="heading" href="{{ url }}" title="{{ res.name or res.description }}"> | ||
{{ h.resource_display_name(res) | truncate(50) }}<span class="format-label" property="dc:format" data-format="{{ res.format.lower() or 'data' }}">{{ res.format }}</span> | ||
{{ h.popular('views', res.tracking_summary.total, min=10) }} | ||
</span> | ||
{% endblock %} | ||
|
||
{% block resource_item_explore_links %} | ||
{% if res.can_be_previewed %} | ||
<li> | ||
<a href="{{ url }}"> | ||
<i class="icon-bar-chart"></i> | ||
{{ _('Preview') }} | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% if pkg.is_geospatial == "1" and res.format.lower() in geo_formats %} | ||
<li> | ||
<a href="/preview.html?layername={{ pkg.name }}&dataformat={{ res.format.lower() }}"> | ||
<i class="icon-download"></i> | ||
{{ _('Download via Map') }} | ||
</a> | ||
</li> | ||
{% endif %} | ||
<li> | ||
<a href="{{ res.url }}" class="resource-url-analytics" target="_blank"> | ||
<i class="icon-download"></i> | ||
{{ _('Download') }} | ||
</a> | ||
</li> | ||
{% if can_edit %} | ||
<li> | ||
<a href="{{ h.url_for(controller='package', action='resource_edit', id=pkg.name, resource_id=res.id) }}"> | ||
<i class="icon-edit"></i> | ||
{{ _('Edit') }} | ||
</a> | ||
</li> | ||
{% endif %} | ||
{{ super() }} | ||
{% if pkg.is_geospatial == "1" and res.format.lower() in geo_formats %} | ||
<li> | ||
<a href="/preview.html?layername={{ pkg.name }}&dataformat={{ res.format.lower() }}"> | ||
<i class="icon-download"></i> | ||
{{ _('Download via Map') }} | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% 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 |
---|---|---|
@@ -1,5 +1,19 @@ | ||
{% ckan_extends %} | ||
|
||
|
||
{% block primary_content %} | ||
<article class="module"> | ||
<div class="module-content"> | ||
<h1 class="page-heading"> | ||
{% block page_heading %}{{ _('Register for an Account') }}{% endblock %} | ||
</h1> | ||
|
||
<p style="padding-bottom: 20px">Personal Information is collected for the purposes of accessing data sets, suggesting data sets, and/or subscribing to email updates . The City of Surrey is collecting this information under s.26 (c) of the Freedom of Information and Protection of Privacy Act. For questions regarding the collection of personal information, please contact Sean Simpson, GIS Manager at <a href="mailto:[email protected]">[email protected]</a> or at 604-591-4730.</p> | ||
{{ c.form | safe }} | ||
</div> | ||
</article> | ||
{% endblock %} | ||
|
||
{% block secondary_content %} | ||
<section class="module module-narrow module-shallow"> | ||
<h2 class="module-heading">{{ _('Why Sign Up?') }}</h2> | ||
|