Use file name with file path as identifier
This commit is contained in:
@ -7,10 +7,7 @@ li.card.mt-2
|
||||
a class=['file-heading', collapsed_class] data-toggle="collapse" href="#collapse#{f.index}" aria-expanded="#{aria_expanded}"
|
||||
div.clearfix role="button"
|
||||
i class="fa" aria-hidden="true"
|
||||
- if f.object.name.present? && f.object.file_type.present?
|
||||
span = f.object.name_with_extension
|
||||
- else
|
||||
span = f.object.name
|
||||
span = f.object.filepath
|
||||
.card-collapse.collapse class=('in' if f.object.name.nil?) id="collapse#{f.index}" role="tabpanel"
|
||||
.card-body
|
||||
- if policy(f.object).destroy? && id.present?
|
||||
|
Reference in New Issue
Block a user