Sha256: cd62584681bb363ef946b93a3ac7001bc9ffd32bce3ef88ebc1b9eb314d73142

Contents?: true

Size: 1.62 KB

Versions: 26

Compression:

Stored size: 1.62 KB

Contents

<% files.each do |file| next if @media_formats.present? && !@media_formats.include?(file["format"]) && !@media_formats.include?(file["url"].split('.').last) %>
    <% file['url'] = download_private_file_cama_admin_media_url(file: file[:url]) if params[:private].present? %>
    <div class="media_item file_item <%= file["format"] %>_format" data-key="<%= file["name"] %>">
        <div class="thumb">
            <% case file["format"]  %>
            <% when "image"  %>
                <img src="<%= file["thumb"] %>" alt="">
            <% when "audio"  %>
                <i class="fa fa-file-audio-o"></i>
            <% when "video"  %>
                <i class="fa  fa-film"></i>
            <% when "compress"  %>
                <i class="fa fa-file-archive-o"></i>
            <% when "doc"  %>
            <% when "document"  %>
                <i class="fa fa-file-text-o"></i>
            <% else  %>
                <i class="fa fa-file-o"></i>
            <% end %>
        </div>
        <div class="label_thumb">
            <%= file["name"] %>
        </div>
        <textarea class="hidden data_value"><%= raw file.to_json %></textarea>
        <div class="actions">
            <% if file['format'] == 'image' && File.extname(file['name']).downcase != '.gif' %>
                <a href="#" class="edit_item btn btn-primary btn-xs" <%= 'data-permit-overwrite="true"' if @show_file_actions %>><i class="fa fa-pencil"></i></a>
            <% end %>
            <% if @show_file_actions %>
                <a href="#" class="del_item btn btn-danger btn-xs"><i class="fa fa-trash"></i></a>
            <% end %>
        </div>
    </div>
<% end %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
camaleon_cms-2.4.4.5 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.4.4 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.4.3 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.4.2 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.4.1 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.4 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.13 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.12 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.11 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.10 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.9 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.8 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.7 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.6 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.5 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.4 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.3 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.2 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3.1 app/views/camaleon_cms/admin/media/_render_file_item.html.erb
camaleon_cms-2.4.3 app/views/camaleon_cms/admin/media/_render_file_item.html.erb