-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DMS-109 Remove group from dataset (#27)
* DMS-109 Button to remove a dataset from a group * DMS-109 Set fixed height for category boxes
- Loading branch information
1 parent
675789f
commit 9f68770
Showing
4 changed files
with
44 additions
and
12 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% ckan_extends %} | ||
|
||
{% set type = group.type or 'group' %} | ||
{% set url = h.url_for(type ~ '.read', id=group.name) %} | ||
{% block item %} | ||
|
||
<div class="col-lg-4 col-md-6 col-xs-12"> | ||
<div class="category-box"> | ||
<img src="{{ group.image_display_url or h.url_for_static('/base/images/placeholder-group.png') }}" alt="{{ group.name }}" class="media-image group-thumbnail"> | ||
<div class="group-text"> | ||
<div class="title"> | ||
<a href="{{ url }}">{{ group.title }}</a> | ||
</div> | ||
{% if group.package_count %} | ||
<div class="desc">{{ ungettext('{num} Dataset', '{num} Datasets', group.package_count).format(num=group.package_count) }}</div> | ||
{% endif %} | ||
{% if group.user_member %} | ||
<button name="group_remove.{{ group.id }}" | ||
type="submit" | ||
class="btn btn-delete btn-sm media-edit" | ||
title="{{_('Remove dataset from this group')}}"/> | ||
<i class="fa fa-remove"> </i> | ||
</button> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |
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
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