Sha256: 904fc621f103bf68afd63563a4e1a914e24bc4d341c1fa1b8beac828ab222f10

Contents?: true

Size: 634 Bytes

Versions: 3

Compression:

Stored size: 634 Bytes

Contents

<%% if notice.present? %>
  <p style="color: green" data-controller="bridge--flash-message"><%%= notice %></p>
<%% end %>

<h1 class="hide-on-mobile"><%= human_name.pluralize %></h1>

<div id="<%= plural_table_name %>">
  <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
    <%%= render <%= singular_table_name %> %>
    <p>
      <%%= link_to "Show this <%= human_name.downcase %>", <%= model_resource_name(singular_table_name) %> %>
    </p>
  <%% end %>
</div>

<%%= link_to "New <%= human_name.downcase %>", <%= new_helper(type: :path) %>, data: { controller: "bridge--nav-button", bridge_title: "+ New" } %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
strada-rails-0.0.3 lib/generators/strada/scaffold/templates/index.html.erb.tt
strada-rails-0.0.2 lib/generators/strada/scaffold/templates/index.html.erb.tt
strada-rails-0.0.1 lib/generators/strada/scaffold/templates/index.html.erb.tt