Sha256: a85972bd504287e0ac0713cacfa8d7ed9977aca2645098564021db58c89b9a7b
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
%h1 = <%= model_name(:ivar) %>.to_s .tools = link_to 'All <%= model_name(:human_plural) %>', <%= wui.path(:index) %>, class: 'tools__button' = link_to 'Edit', <%= wui.path(:edit, model_name(:ivar)) %>, class: 'tools__button is_primary' = link_to 'Destroy', <%= wui.path(:destroy, model_name(:ivar)) %>, method: :delete, class: 'tools__button', confirm: 'Really destroy?' <% wui.custom_actions.select(&:member?).each do |action| -%> = link_to '<%= action.name(:human).titleize %>', <%= wui.path(action, model_name(:ivar)) %>, class: 'tools__button'<%= ", method: :#{action.method}" unless action.get? %> <% end -%> %dl.values <% wui.model.attrs.each do |attribute| -%> <%- model_attribute = "#{model_name(:ivar)}.#{attribute.name}" -%> %dt = <%= model_name(:class_name) %>.human_attribute_name(:<%= attribute.name %>) %dd <%- case attribute.type -%> <%- when :string -%> = <%= model_attribute %> <%- when :email -%> = mail_to <%= model_attribute %>, nil, class: 'hyperlink' <%- when :url -%> = link_to <%= model_attribute %>, <%= model_attribute %>, class: 'hyperlink' <%- when :integer -%> = <%= model_attribute %> <%- when :money -%> = <%= model_attribute %> € <%- when :text -%> = simple_format(<%= model_attribute %>) <%- when :markdown -%> = markdown(<%= model_attribute %>) <%- when :flag -%> = <%= model_attribute %> ? 'Yes' : 'No' <%- when :datetime -%> = l(<%= model_attribute %>) if <%= model_attribute %> <%- end -%> <%- end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katapult-0.1.0 | lib/generators/katapult/haml/templates/show.html.haml |