Fix data-file-path

This correct the `data-file-path` attribute's value so that the value includes the ancestor directories to a file.
This commit is contained in:
Yuta Taniguchi
2020-04-09 23:51:02 +09:00
committed by GitHub
parent ae024eb3b3
commit 9ab4bbb17c
+1 -1
View File
@@ -18,7 +18,7 @@
<span class="pr-2">{{{icon}}}</span>
<span><a href={{url}}>{{name}}</a></span>
{{#allow_editing}}
{{#is_file}}<button class="btn btn-sm float-right delete-file" data-file-path={{name}} data-confirm="Are you sure you want to delete {{name}}?">{{#octicon}}trashcan{{/octicon}}</button>{{/is_file}}
{{#is_file}}<button class="btn btn-sm float-right delete-file" data-file-path={{url}} data-confirm="Are you sure you want to delete {{name}}?">{{#octicon}}trashcan{{/octicon}}</button>{{/is_file}}
{{/allow_editing}}
</li>
{{/files_folders}}