Merge pull request #1549 from yuttie/yuttie-patch-fix-data-file-path

Fix `data-file-path` in overview pages
This commit is contained in:
Bart Kamphorst
2020-04-10 13:02:13 +02:00
committed by GitHub
+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}}