[ckan-changes] [okfn/ckan] 118379: remove old helper fn from templates and helpers_cl...

GitHub noreply at github.com
Fri Apr 20 14:56:17 UTC 2012


  Branch: refs/heads/enhancement-2251-tracking
  Home:   https://github.com/okfn/ckan
  Commit: 11837933b77f095190f0e81dae6ef857ea9100ff
      https://github.com/okfn/ckan/commit/11837933b77f095190f0e81dae6ef857ea9100ff
  Author: Toby <toby.junk at gmail.com>
  Date:   2012-04-20 (Fri, 20 Apr 2012)

  Changed paths:
    M ckan/lib/helpers_clean.py
    M ckan/templates/package/read_core.html
    M ckan/templates/snippets/package_list.html

  Log Message:
  -----------
  remove old helper fn from templates and helpers_clean.py


diff --git a/ckan/lib/helpers_clean.py b/ckan/lib/helpers_clean.py
index 728f193..54c50c8 100644
--- a/ckan/lib/helpers_clean.py
+++ b/ckan/lib/helpers_clean.py
@@ -58,8 +58,6 @@
            group_link,
            dump_json,
            auto_log_message,
-           tracking_count_package,
-           tracking_count_resource,
            snippet,
            convert_to_dict,
            activity_div,
diff --git a/ckan/templates/package/read_core.html b/ckan/templates/package/read_core.html
index c81a34a..92a3384 100644
--- a/ckan/templates/package/read_core.html
+++ b/ckan/templates/package/read_core.html
@@ -33,7 +33,6 @@
             <a href="${h.url_for(controller='package', action='resource_read', id=c.pkg_dict['name'], resource_id=res['id'])}">
               ${h.resource_icon(res)}
               ${h.resource_display_name(res)}
-			  ${h.tracking_count_resource(res.url)}
               <span py:if="res.get('format')" class="format-box" property="dc:format">${res.get('format')}</span>
             </a>
             </li>
diff --git a/ckan/templates/snippets/package_list.html b/ckan/templates/snippets/package_list.html
index 0c75952..c90a4b7 100644
--- a/ckan/templates/snippets/package_list.html
+++ b/ckan/templates/snippets/package_list.html
@@ -26,7 +26,6 @@
           </ul>
         </py:if>
         <ul class="openness">
-			${h.tracking_count_package(package.get('id'))}
           <py:if test="package.isopen">
             <li>
               <a href="http://opendefinition.org/okd/" title="This dataset satisfies the Open Definition.">


================================================================



More information about the ckan-changes mailing list