Sha256: 1f267b608999aa3887c17dbd2b31b3b376ebb32ee742e9cc17e7828668ff9c9e
Contents?: true
Size: 748 Bytes
Versions: 2
Compression:
Stored size: 748 Bytes
Contents
<%% secondary_navigation({:value => link_to(t(:list),<%= plural_table_name %>_path)}, ({:value => link_to(t(:add), new_<%= singular_table_name %>_path)}<%= " if can?(:create, @#{singular_table_name})" if authorization? %>), ({:value => link_to(t(:edit), edit_<%= singular_table_name %>_path(@<%= singular_table_name %>))}<%= " if can?(:update, @#{singular_table_name})" if authorization? %>), {:value => link_to(t(:show), @<%= singular_table_name %>), :active => true} )%> <% attributes.each do |attribute| -%> <p> <b><%%= t('attributes.<%= singular_table_name %>.<%= attribute.name %>') %>:</b> <%%= @<%= singular_table_name %>.<%= attribute.name %> %> </p> <% end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
leonardo-1.3.1 | lib/generators/erb/leosca/templates/show.html.erb |
leonardo-1.3.0 | lib/generators/erb/leosca/templates/show.html.erb |