Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#858] Whitespace cleanup ckan/templates/snippets/follow_button.html
- Loading branch information
1 parent
9b39088
commit 2da8bf6
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %} |