Skip to content

Commit

Permalink
Updated follow button snippet to have correc url_for
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Oct 9, 2012
1 parent b0754fa commit 1602ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/templates/snippets/follow_button.html
@@ -1,10 +1,10 @@
{% if following %}
<a href="{{ h.url_for(obj_type, 'follow', obj_id) }}" class="btn btn-danger" data-module="follow" data-module-type="{{ obj_type }}" data-module-id="{{ obj_id }}" data-module-action="unfollow">
<a href="{{ h.url_for(controller=obj_type, action='unfollow', id=obj_id) }}" class="btn btn-danger" data-module="follow" data-module-type="{{ obj_type }}" data-module-id="{{ obj_id }}" data-module-action="unfollow">
<i class="icon-remove-sign"></i>
{{ _('Unfollow') }}
</a>
{% else %}
<a href="{{ h.url_for(obj_type, 'unfollow', obj_id) }}" class="btn btn-success" data-module="follow" data-module-type="{{ obj_type }}" data-module-id="{{ obj_id }}" data-module-action="follow">
<a href="{{ h.url_for(controller=obj_type, action='follow', id=obj_id) }}" class="btn btn-success" data-module="follow" data-module-type="{{ obj_type }}" data-module-id="{{ obj_id }}" data-module-action="follow">
<i class="icon-plus-sign"></i>
{{ _('Follow') }}
</a>
Expand Down

0 comments on commit 1602ca2

Please sign in to comment.