Sha256: 11881a9fa9861b64a9e89bfa0ded49864777cd80819d9d1fe8111f9aa4c6169b
Contents?: true
Size: 533 Bytes
Versions: 9
Compression:
Stored size: 533 Bytes
Contents
<% shortened_path = shorten_file_path(@path) %> <div> <%= link_to "#{ shortened_path }" , "#", :title => @path, :class => "path" %> </div> <% @listing = Dir.entries(@path).sort. map { |e| e + (File.stat(File.join(@path, e)).directory? ? "/" : "") }. sort_by { |e| e[-1] == ?/ ? -1 : 1 }. map { |e| link_to_file(File.join(@path, e), :file_name_only => true) }. join("\n") %> <%= content_tag(:pre, @listing) %>
Version data entries
9 entries across 9 versions & 1 rubygems