Skip to content

Commit

Permalink
[#1647] Stats extension. 'Largest Groups' links lead either to organi…
Browse files Browse the repository at this point in the history
…zations or to groups page

Currently all links under the 'Largest Groups' refer to groups page.

After this change links refer to group page for groups and to organization page for organizations
  • Loading branch information
smotornyuk authored and amercader committed Feb 12, 2015
1 parent 0f22684 commit 0c97fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/stats/templates/ckanext/stats/index.html
Expand Up @@ -117,7 +117,7 @@ <h2>{{ _('Largest Groups') }}</h2>
<tbody>
{% for group, num_packages in c.largest_groups %}
<tr>
<td>{{ h.link_to(group.title or group.name, h.url_for(controller='group', action='read', id=group.name)) }}</td>
<td>{{ h.link_to(group.title or group.name, h.url_for(controller=group.type, action='read', id=group.name)) }}</td>
<td class="metric">{{ num_packages }}</td>
</tr>
{% endfor %}
Expand Down

0 comments on commit 0c97fcd

Please sign in to comment.