Sha256: e9599aed427ceef0d937f41169bf6b11944c306985d3383314d622e152b421f0

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

- tags = manageable_tags
- if tags.present?
  .autoscroll
    table.list.issues
      thead
        tr
          th.checkbox.hide-when-print
            = check_box_tag 'ids[]', '', false, class: 'toggle-selection',
                            title: "#{l :button_check_all}/#{l :button_uncheck_all}"

          th = l :field_name
          - manageable_tag_columns.each do |_column, column_values|
            th = column_values[:label]
          th
      tbody
        - use_colors = AdditionalTags.use_colors?
        - color_theme = AdditionalTags.setting :tags_color_theme
        - tags.each do |tag|
          tr.hascontextmenu id="#{tag.id}"
            td.checkbox.hide-when-print
              = check_box_tag 'ids[]', tag.id, false, id: nil
            td
              = additional_tag_link tag,
                                    link: edit_additional_tag_path(tag),
                                    use_colors: use_colors,
                                    color_theme: color_theme

            - manageable_tag_column_values(tag).each do |column|
              td = column
            td.buttons
              = link_to l(:button_edit), edit_additional_tag_path(tag),
                        class: 'icon icon-edit'
              = delete_link additional_tags_path(ids: tag)
- else
  p.nodata = l :label_no_data

javascript:
  $(function() {
    $('#settings form').data('cmUrl', "#{context_menu_additional_tags_path}")
  })

= context_menu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
additional_tags-3.1.0 app/views/additional_tags/settings/_manage_tags.html.slim