%%- model_class = <%= model.name.sub(/\ATemplate::/, '::Template::') %> -%>
<%%= model_class.human_attribute_name(:<%= column.name %>) %> | <%- end -%><%%=t '.actions', :default => t("helpers.actions") %> | |||||
---|---|---|---|---|---|---|
<%%= link_to <%= model.full_resource_name %>.<%= column.name %>, <%= singular_controller_routing_path %>_path(<%= model.full_resource_name %>) %> | <%- elsif tcol = column.ref_model.try(:title_column) -%> <%- if column.required? -%><%%= <%= model.full_resource_name %>.<%= column.reference.name %>.<%= tcol.name %> %> | <%- else -%><%%= <%= model.full_resource_name %>.<%= column.reference.name %>.try(:<%= tcol.name %>) %> | <%- end -%> <%- elsif column.enumerized? -%><%%= <%= model.full_resource_name %>.<%= column.name %>_text %> | <%- elsif column.to_be_localized? -%><%%=l <%= model.full_resource_name %>.<%= column.name %> %> | <%- else -%><%%= <%= model.full_resource_name %>.<%= column.name %> %> | <%- end -%> <%- end -%><%%= link_to t('.edit', :default => t("helpers.links.edit")), edit_<%= singular_controller_routing_path %>_path(<%= model.full_resource_name %>), :class => 'btn btn-default btn-xs' %> <%%= link_to t('.destroy', :default => t("helpers.links.destroy")), <%= singular_controller_routing_path %>_path(<%= model.full_resource_name %>), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-xs btn-danger' %> |