Skip to content

Commit

Permalink
Removed "popular" icon as it appears non-functional and also made a s…
Browse files Browse the repository at this point in the history
…low query get called 20 times per page load, specifically selecting from tracking_summary (#781)
  • Loading branch information
jachurchill authored and ll911 committed Aug 28, 2019
1 parent bfe00ba commit 3ae474f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ckanext/bcgov/templates/snippets/package_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
{% set truncate = truncate or 180 %}
{% set truncate_title = truncate_title or 80 %}
{% set title = package.title or package.name %}
{% set tracking_summary = h.get_package_tracking(package['id']) %}
{% set notes = h.markdown_extract(package.notes, extract_length=truncate) %}

{% block package_item %}
Expand Down Expand Up @@ -71,8 +70,6 @@ <h3 class="dataset-heading">
{{ h.link_to(h.truncate(title, truncate_title), h.url_for(controller='package', action='read', id=package.name)) }}
{% endblock %}

{{ h.popular('recent views', package.tracking_summary.recent, min=10) if package.tracking_summary }}

{% if package.org and package.sub_org %}
{% block heading_orgs %}
<div class="dataset-heading-orgs">
Expand Down

0 comments on commit 3ae474f

Please sign in to comment.