Sha256: aec4ab6145879512460ff56cc96f85e08a32e81850e8f3a7d4ad413cfc8c2fef
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
%h1 <%= model_name(:humans).capitalize %> .tools = link_to 'Add <%= model_name(:human) %>', <%= wui.path(:new) %>, class: 'tools__button is_primary' <% wui.custom_actions.select(&:collection?).each do |action| -%> = link_to '<%= action.name.humanize.titleize %>', <%= wui.path(action) %>, class: 'tools__button' <% end -%> - if <%= model_name(:ivars) %>.any? %table.items <%- object_name = model_name(:variable) -%> - <%= model_name(:ivars) %>.each do |<%= object_name %>| %tr %td = link_to <%= object_name %>.to_s, <%= object_name %>, class: 'hyperlink' %td .items__actions = link_to 'Edit', <%= wui.path(:edit, object_name) %>, class: 'items__action' = link_to 'Destroy', <%= wui.path(:destroy, object_name) %>, method: :delete, class: 'items__action', confirm: 'Really destroy?' <%- wui.custom_actions.select(&:member?).each do |action| -%> = link_to '<%= action.name.humanize.titleize %>', <%= wui.path(action, object_name) %>, class: 'items__action'<%= ", method: :#{action.method}" unless action.get? %> <%- end -%> - else %p.help-block There are no <%= model_name(:humans) %> yet.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
katapult-0.1.2 | lib/generators/katapult/haml/templates/index.html.haml |
katapult-0.1.1 | lib/generators/katapult/haml/templates/index.html.haml |