Skip to content

Commit

Permalink
Use group.read instead group_read in h.url_for
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Nov 22, 2018
1 parent bed8453 commit df590ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ckan/templates-bs2/group/snippets/group_item.html
Expand Up @@ -12,7 +12,7 @@
</ul>
#}
{% set type = group.type or 'group' %}
{% set url = h.url_for(type ~ '_read', action='read', id=group.name) %}
{% set url = h.url_for(type ~ '.read', id=group.name) %}
{% block item %}
<li class="media-item">
{% block item_inner %}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates-bs2/snippets/organization.html
Expand Up @@ -15,7 +15,7 @@
#}

{% set truncate = truncate or 0 %}
{% set url = h.url_for(organization.type + '_read', id=organization.name, ) %}
{% set url = h.url_for(organization.type + '.read', id=organization.name, ) %}

{% block info %}
<div class="module module-narrow module-shallow context-info">
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/group/snippets/group_item.html
Expand Up @@ -12,7 +12,7 @@
</ul>
#}
{% set type = group.type or 'group' %}
{% set url = h.url_for(type ~ '_read', action='read', id=group.name) %}
{% set url = h.url_for(type ~ '.read', id=group.name) %}
{% block item %}
<li class="media-item">
{% block item_inner %}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/snippets/organization.html
Expand Up @@ -15,7 +15,7 @@
#}

{% set truncate = truncate or 0 %}
{% set url = h.url_for(organization.type + '_read', id=organization.name, ) %}
{% set url = h.url_for(organization.type + '.read', id=organization.name, ) %}

{% block info %}
<div class="module module-narrow module-shallow context-info">
Expand Down

0 comments on commit df590ba

Please sign in to comment.