Sha256: 2243ed7b9958218de3d187275dc84bbc5783d3211a97186fc5fabdb447fe375f
Contents?: true
Size: 950 Bytes
Versions: 57
Compression:
Stored size: 950 Bytes
Contents
- tag_url_method = local_assigns.has_key?(:overwrite_tags_on_drop) ? :set_by_gid_and_tag_taggings_path : :create_by_gid_and_tag_taggings_path .navbar.navbar-default .container-fluid = simple_form_for((@tag || Cmor::Tags::Tag.new), url: cmor_tags_backend.tags_path, html: { class: 'navbar-form simple_form new_tag form-inline' }, remote: true) do |f| = f.input :name, label: t('.add') = f.submit .navbar-brand = Cmor::Tags::Tag.model_name.human(count: :other) %ul.nav.navbar-nav - Cmor::Tags::Tag.all.each do |tag| %li .navbar-text %span.draggable-tag.label.label-default{ id: "tag-#{tag.to_param}", style: "background-color: #{tag.color}", data: { tag: true, 'tag-uid': tag.to_param, 'tag-url': cmor_tags_backend.send(tag_url_method) } } = tag.name - if local_assigns.has_key? :added_element :javascript $("#tag-#{added_element}").effect("highlight", {},1000);
Version data entries
57 entries across 57 versions & 1 rubygems