Sha256: 40c3214982f57a42d102baa459a43a5cf7272c64cb8fd85d2ce3bbed4f4b3e6e
Contents?: true
Size: 922 Bytes
Versions: 13
Compression:
Stored size: 922 Bytes
Contents
- tag_field_groups = FieldGroup.where(tag_id: tag.id) - model_tagging_counts = tag.model_tagging_counts %li.highlight[tag] .tools = link_to_edit(tag, url: edit_admin_tag_path(tag)) + " |" - if tag_field_groups.any? %span{style: "color: #777"} Delete - else - if model_tagging_counts.any? = link_to_confirm(tag) - else = link_to_delete(tag, url: url_for([:admin, tag])) %span.black= tag.name %tt - if model_tagging_counts.any? = t(:tagged) + ":" = model_tagging_counts.map {|k, c| t(pluralize(c, k.downcase)) }.join(", ") - if tag_field_groups.any? %dt{ style: "padding: 2px 0px 0px 0px" } = t(:field_group_tags) + ":" - tag_field_groups.each_with_index do |field_group, i| %strong= field_group.label_i18n on %strong= field_group.klass_name.pluralize - if i < tag_field_groups.size - 1 = "|"
Version data entries
13 entries across 13 versions & 1 rubygems