Sha256: d8bd97458cb917a2febacae7d84bc41647a165fecdc1ac98ec0bb41e8c05c0c6

Contents?: true

Size: 784 Bytes

Versions: 17

Compression:

Stored size: 784 Bytes

Contents

- content_for(:header_title) { "Duplicates" }

= simple_form_for :duplicates do |f|
  - count = 0

  = bb_panel table: true do
    %thead
      %tr
        %th
        %th Key
        %th Path
        %th Other path
    %tbody
      - @duplicates.each do |duplicate|
        - count += 1
        - other = AwesomeTranslations::CacheDatabaseGenerator::TranslationValue.find(duplicate.duplicate_id)

        %tr
          %td= check_box_tag "d[#{other.id}]", 1, true
          %td= duplicate.key
          %td= path_without_root_or_locales duplicate.file_path
          %td= path_without_root_or_locales other.file_path
      - if count == 0
        %tr
          %td{colspan: 4} No duplicates was found

  - if count > 0
    = bb_panel do
      = f.button :submit, "Delete duplicates"

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
awesome_translations-0.0.49 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.48 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.47 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.46 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.45 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.44 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.43 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.42 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.41 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.40 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.39 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.38 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.37 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.36 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.35 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.34 app/views/awesome_translations/duplicates/index.html.haml
awesome_translations-0.0.33 app/views/awesome_translations/duplicates/index.html.haml