Sha256: 0fec26db9d30d9f4166572ddd49ed15937b6c73fd5ff8a30f0a8ecdbca0518c9

Contents?: true

Size: 1.53 KB

Versions: 19

Compression:

Stored size: 1.53 KB

Contents

<div class="resource_info">
  <div class="value">
    <label><%= Alchemy::Picture.human_attribute_name :name %></label>
    <p><%= @picture.name %></p>
  </div>
  <div class="value">
    <label><%= Alchemy::Picture.human_attribute_name :image_file_name %></label>
    <p><%= @picture.image_file_name %></p>
  </div>
  <div class="value">
    <label><%= Alchemy::Picture.human_attribute_name :image_file_dimensions %></label>
    <p><%= @picture.image_file_dimensions %> px</p>
  </div>
  <div class="value">
    <label><%= Alchemy::Picture.human_attribute_name :image_file_size %></label>
    <p><%= number_to_human_size @picture.image_file_size %></p>
  </div>

  <% unless @picture.deletable? %>
    <h2><%= _t(:this_picture_is_used_on_these_pages) %>:</h2>
    <div id="pictures_page_list">
    <% @picture.essence_pictures.group_by(&:page).each do |page, essence_pictures| %>
      <div class="value">
        <label><%= link_to page.name, edit_admin_page_path(page) %></label>
        <ul>
          <% essence_pictures.group_by(&:element).each do |element, essence_pictures| %>
          <li class="<%= cycle('even', 'odd') %>">
            <% page_link = link_to element.display_name_with_preview_text, edit_admin_page_path(page, :anchor => "element_#{element.id}") %>
            <% pictures = essence_pictures.collect { |e| e.content.name_for_label }.to_sentence %>
            <%= _t(:pictures_in_page, :page => page_link, :pictures => pictures) %>
          </li>
          <% end %>
        </ul>
      </div>
    <% end %>
    </div>
  <% end %>
</div>

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.1.3 app/views/alchemy/admin/pictures/info.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/pictures/info.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.0.4 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/pictures/info.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/pictures/info.html.erb