% if @module_key == 'asset' %> <% end %>
<%= t("file_manager.module") %> | <% end %><%= t("file_manager.name") %> | <%= t("file_manager.size") %> | <%= t("file_manager.updated_at") %> | <% unless @only_select_folder %><%= t("file_manager.rename") %> | <%= t("file_manager.delete") %> | <%= t("download") %> | <%= t("file_manager.upload") %> | <%= t("file_manager.link") %> | <% end %>
---|---|---|---|---|---|---|---|---|
<% module_info = @module_info_dict[entry[:module]] module_title = (module_info ? module_info[:title] : nil) %> <% if module_title %> <%= link_to(module_title, "javascript:void(0)", class: "module-key", data: {'key'=>entry[:module]}) %> <% end %> | <% end %><%= link_to "javascript:void(0)", class: entry[:type].to_s, data: {'entry'=>entry[:entry], 'id'=> entry[:id]} do %> <%= fa_icon (entry[:type] == :file ? 'file' : 'folder') %> <%= entry[:entry] %> <% end %> | <%= entry[:size] %> | <%= entry[:date] %> | <% unless @only_select_folder %><% if entry[:is_editable] && entry[:entry] != './' && entry[:entry] != '../' %> <%= link_to 'javascript:void(0)', class: 'rename', onclick: "rename('#{entry[:id]}', '#{URI.decode(entry[:relative])}')" do %> <%= fa_icon 'i-cursor' %> <%= t("file_manager.rename") %> <% end %> <% end %> | <% if entry[:is_editable] && entry[:entry] != './' && entry[:entry] != '../' %> <%= link_to "javascript:void(0)", class: 'delete', data: { "tmp-confirm"=> "Are you sure you want to delete `#{URI.decode(entry[:relative])}`?", "link"=> admin_file_manager_path(entry[:id]) } do %> <%= fa_icon 'trash' %> <%= t("file_manager.delete") %> <% end %> <% end %> | <% if entry[:id] && entry[:is_file] %> " target="_blank"><%= fa_icon 'download' %> <%= t("download") %> <% end %> |
|
<% end %>