Sha256: ad05b94fec386bfd56e6425d057da44b43baea351714748c2ad95d5efc8786d1
Contents?: true
Size: 937 Bytes
Versions: 15
Compression:
Stored size: 937 Bytes
Contents
- tag_field_groups = FieldGroup.find_all_by_tag_id(tag) - 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
15 entries across 15 versions & 1 rubygems