Sha256: 0d52054b4683489a6d31d38f4b60e1dbc46e1c36522697884de3b0832eb6480e

Contents?: true

Size: 1.78 KB

Versions: 2

Compression:

Stored size: 1.78 KB

Contents

<% title_attribute = (title = attributes.detect { |a| a.type.to_s == "string" }).present? ? title.name : title -%>
<li class='clearfix record <%%= cycle("on", "on-hover") %>' id="<%%= dom_id(<%= singular_name %>) -%>">
  <span class='title'>
    <%%= <%= singular_name %>.<%= title_attribute %> %>
<% if localized? %>
    <%% if Refinery.i18n_enabled? and Refinery::I18n.frontend_locales.many? %>
      <span class='preview'>
        <%% <%= singular_name %>.translations.each do |translation| %>
          <%% if translation.<%= title_attribute %>.present? %>
            <%%= link_to refinery_icon_tag("flags/#{translation.locale}.png", :size => '16x11'),
                         refinery.edit_<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>, :switch_locale => translation.locale),
                         :class => 'locale' %>
          <%% end %>
        <%% end %>
      </span>
    <%% end %>
<% end %>
  </span>
  <span class='actions'>
    <% unless skip_frontend? %>
    <%%= link_to refinery_icon_tag("application_go.png"), refinery.<%= namespacing.underscore %>_<%= singular_name %>_path(<%= singular_name %>),
        :title => t('.view_live_html'),
        :target => "_blank" %>
    <% end %>
    <%%= link_to refinery_icon_tag("application_edit.png"), refinery.edit_<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>),
         :title => t('.edit') %>
    <%%= link_to refinery_icon_tag("delete.png"), refinery.<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>),
        :class => "cancel confirm-delete",
        :title => t('.delete'),
        :confirm => t('message', :scope => 'refinery.admin.delete', :title => <%= singular_name %>.<%= title_attribute %>),
        :method => :delete %>
  </span>
</li>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refinerycms-core-2.0.5 lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb
refinerycms-core-2.0.4 lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb