-
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.
- Loading branch information
1 parent
ecb5e01
commit 2018b09
Showing
15 changed files
with
100 additions
and
104 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 was deleted.
Oops, something went wrong.
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
File renamed without changes.
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
4 changes: 2 additions & 2 deletions
4
ckanext/file_manager/assets/webassets.yml → ckanext/files_manager/assets/webassets.yml
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
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
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,36 @@ | ||
{% extends "collection/serialize/ap_htmx_table/record.html" %} | ||
|
||
{% block value %} | ||
{% if column == "row_actions" %} | ||
{% set info = h.files_link_details(data.id) %} | ||
{% set url = info and info.href %} | ||
|
||
{% if url %} | ||
<a | ||
data-module="ap-tooltip ap-copy-to-clipboard" | ||
data-module-content="{{ url }}" | ||
title="{{ _('Copy file URL')}}" | ||
class="btn btn-black"> | ||
<i class="fas fa-copy"></i> | ||
</a> | ||
|
||
<a | ||
href="{{ url }}" | ||
download | ||
data-module="ap-tooltip" | ||
title="{{ _('Download file')}}" | ||
class="btn btn-primary"> | ||
<i class="fas fa-download"></i> | ||
</a> | ||
{% endif %} | ||
<a | ||
data-module="ap-tooltip" title="{{ _('Remove a file') }}" | ||
class="btn btn-danger" | ||
href="{{ h.url_for('files_manager.delete', file_id=data.id) }}" | ||
hx-swap="none" hx-trigger="click" hx-post="{{ h.url_for('files_manager.delete', file_id=data.id) }}"> | ||
<i class="fa fa-trash-alt"></i> | ||
</a> | ||
{% else %} | ||
{{ super() }} | ||
{% endif %} | ||
{% endblock value %} |
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
File renamed without changes.
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
Oops, something went wrong.