Sha256: 19a2aae2db82e04ea81c71c10f8a987b93365a33fa4ffe9e87ebd89e456f699a

Contents?: true

Size: 1.51 KB

Versions: 6

Compression:

Stored size: 1.51 KB

Contents

<li class='clearfix record <%%= cycle("on", "on-hover") %>'>
  <span class='title'>
    <%%= link_to <%= singular_name %>.name, refinery.<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>) %> <%%= t('.said') %>
    <span class="preview"><%%= truncate(strip_tags(<%= singular_name %>.message), :length => 60) -%></span>
  </span>
  <span class='actions'>
    <%%= link_to refinery_icon_tag('delete.png'), refinery.<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>),
                :class => "cancel confirm-delete",
                :title => t('admin.<%= plural_name %>.delete'),
                :'data-confirm' => t('shared.admin.delete.message', :title => <%= singular_name %>.name),
                :'data-method' => "delete" -%>

    <%%= link_to refinery_icon_tag('zoom.png'), refinery.<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>),
                :title => t('.read_<%= singular_name %>') -%>
<% if @includes_spam %>
    <%% if <%= singular_name %>.spam? %>
      <%%= link_to refinery_icon_tag('email.png'), refinery.toggle_spam_<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>),
                  :title => t('.mark_as_ham') -%>
    <%% else %>
      <%%= link_to refinery_icon_tag('bin_closed.png'), refinery.toggle_spam_<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>),
                  :title => t('.mark_as_spam') -%>
    <%% end %>
<% end -%>
  </span>
</li>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-core-2.0.5 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb
refinerycms-core-2.0.4 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb
refinerycms-core-2.0.3 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb
refinerycms-core-2.0.2 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb
refinerycms-core-2.0.1 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb
refinerycms-core-2.0.0 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb