Sha256: b3da5e06b8e3b5b609c2e25e31c03a06134d60f702af8d91d9bff726e693b6ac

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

<ul class="list-group">
    <% @paths.each do |path| %>
        <li class="list-group-item">
            <%= path %> 
            <% if path.modified_at.present? %>
              was modified
              <%= time_ago_in_words(path.modified_at) %>
            <% end %>
            <% if path =~ /\.zip\Z/ %>
                <%= button_to('Unzip', unzips_path(unzip: {zip_file_path: path.global_path})) %>
            <% end %>

            <% if path.file? %>
              <% case File.extname(path.file_system_path) %>
              <% when '.shp' %>
                <%= link_to 'View', ezii_os_file_path(path.global_path) %>
              <% when '.xlsx' %>
                <%= link_to 'View', ezii_os_file_path(path.global_path) %>
              <% when '.pdf' %>
                <%= link_to 'View', ezii_os_file_path(path.global_path) %>
              <% when '.jpg' %>
                <%= link_to 'View', ezii_os_file_path(path.global_path) %>
              <% when '.erb' %>
                <%= link_to('Show INLINE (admin only)', ezii_os_file_path(path.global_path, admin: true)) %>
              <% end %>
            <% else %>
              <%= link_to 'Change directory (cd)', directory_path(path.global_path) %>
            <% end %>
        </li>
    <% end %>
</ul>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ezii-os-1.1.0 app/views/directories/show.html.erb