Sha256: 036e27d1077b5c7f113913db7ea2d87037e29d0cebfec8d7a8ebb14945cd7acc
Contents?: true
Size: 1.76 KB
Versions: 6
Compression:
Stored size: 1.76 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.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
6 entries across 6 versions & 1 rubygems