Skip to content

Commit

Permalink
[#858] Whitespace cleanup ckan/templates/snippets/follow_button.html
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Aug 6, 2013
1 parent 9b39088 commit 2da8bf6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ckan/templates/snippets/follow_button.html
@@ -1,16 +1,16 @@
{% set controller = obj_type %}
{% if controller == 'dataset' %}
{% set controller = 'package' %}
{% set controller = 'package' %}
{% endif %}

{% if following %}
<a href="{{ h.url_for(controller=controller, 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>
<a href="{{ h.url_for(controller=controller, 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(controller=controller, 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>
<a href="{{ h.url_for(controller=controller, 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>
{% endif %}

0 comments on commit 2da8bf6

Please sign in to comment.