Sha256: ae3e03b5a3b6afe2a258ca2a7096f9deac678bedf604c487603bc90cfa726ec1

Contents?: true

Size: 792 Bytes

Versions: 14

Compression:

Stored size: 792 Bytes

Contents

<p id="notice"><%%= notice %></p>

<% for attribute in attributes -%>
<p>
  <b><%= attribute.human_name %>:</b>
  <%%= @<%= singular_table_name %>.<%= attribute.name %> %>
</p>

<% end -%>

<% if defined? ::Ixtlan::Guard -%>
<%% if allowed?(:<%= table_name %>, :update) %>
<% end -%>
<% if options[:singleton] -%>
<%%= link_to 'Edit', edit_<%= singular_table_name %>_path %>
<% else -%>
<%%= link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>) %>
<% end -%>
<% if defined? ::Ixtlan::Guard -%>
<%% end %>
<% end -%>
<% unless options[:singleton] -%>
<% if defined? ::Ixtlan::Guard -%>
<%% if allowed?(:<%= table_name %>, :index) %>
<% end -%>
 | <%%= link_to 'Back', <%= index_helper %>_path %>
<% if defined? ::Ixtlan::Guard -%>
<%% end %>
<% end -%>
<% end -%>

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
ixtlan-generators-0.1.7 lib/generators/rails/erb/scaffold/show.html.erb
ixtlan-generators-0.1.5 lib/generators/rails/erb/scaffold/show.html.erb
ixtlan-generators-0.1.4 lib/generators/rails/erb/scaffold/show.html.erb
ixtlan-generators-0.1.3 lib/generators/rails/erb/scaffold/show.html.erb
ixtlan-generators-0.1.2 lib/generators/rails/erb/scaffold/show.html.erb
ixtlan-generators-0.1.1 lib/generators/rails/erb/scaffold/show.html.erb
ixtlan-core-0.6.0 lib/generators/rails/erb/scaffold/show.html.erb
ixtlan-generators-0.1.0 lib/generators/rails/erb/scaffold/show.html.erb
ixtlan-core-0.5.0 lib/generators/rails/erb/scaffold/show.html.erb
ixtlan-core-0.4.1 lib/generators/rails/erb/scaffold/show.html.erb
ixtlan-core-0.4.0 lib/generators/rails/erb/scaffold/show.html.erb
ixtlan-core-0.2.0 lib/generators/rails/templates/show.html.erb
ixtlan-core-0.1.1 lib/generators/rails/templates/show.html.erb
ixtlan-core-0.1.0 lib/generators/rails/templates/show.html.erb