Sha256: b165617740d10f17daac54ba0ef471f1f901fb520e89447158ed1848b1925047

Contents?: true

Size: 1018 Bytes

Versions: 1

Compression:

Stored size: 1018 Bytes

Contents

<table>
  <thead>
    <tr><th colspan=3>"<%%= @<%= singular_table_name %>.title %>" Properties</th></tr>
  </thead>
  <tbody>
    <tr>
      <th>URL:</th>
      <td><%%= link_to "#{@<%= singular_table_name %>.url}", @<%= singular_table_name %>.url %> <%%= link_to image_tag('/images/cable/new-window.png'), @<%= singular_table_name %>.url, :target => "_blank" %> </td>

    </tr>
    <%% unless @<%= singular_table_name %>.resource.nil? %>
      <tr>
        <th class="label">Links to:</th>
        <td><%%= @<%= singular_table_name %>.cable_<%= singular_table_name %>able_type %> | <%%= link_to @<%= singular_table_name %>.resource.first_displayable_attribute, [:admin, @<%= singular_table_name %>.resource] %></td>
      </tr>
    <%% end %>
  </tbody>
</table>
<div class="actions">
  <%%= link_to "Edit", edit_admin_menu_path(@<%= singular_table_name %>) %>
  <%%= link_to "Destroy", [:admin, @<%= singular_table_name %>], :confirm => 'Are you sure? This could be a really bad idea!', :method => :delete %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cable-0.9.17 lib/generators/cable/menu/templates/erb/menus/show.html.erb