Sha256: 68934bf2209e68f1fdc5fd615d331188e170f0288dd61a6b637dde3255abf586
Contents?: true
Size: 502 Bytes
Versions: 48
Compression:
Stored size: 502 Bytes
Contents
- actions.group_by(&:crud_action).reverse_each.with_index do |g, gidx| - g[1].each_with_index do |a, idx| - cf_sym = "link_inner#{gidx}-#{idx}".to_sym = content_for cf_sym do - icon_key = "activerecord.actions.icons.#{a.sym}" - if I18n.exists?(icon_key) %i.fa{ class: I18n.t(icon_key)} = resource_form_action_label(@resource, a.sym) = link_to({ controller: a.controller, action: a.action }, a.args_hash(class: 'btn btn-tool')) do = yield cf_sym
Version data entries
48 entries across 48 versions & 1 rubygems