Sha256: e23b90ac39fa1da65e5c49be55f08ce47ce84376c4917dcadf8e0fa2f595ef4d

Contents?: true

Size: 1.42 KB

Versions: 9

Compression:

Stored size: 1.42 KB

Contents

<% content_for(:header_title) { "Duplicates" } %>

<%= form_tag do %>
  <% count = 0 %>

  <div class="panel panel-default">
    <div class="table-responsive">
      <table class="table table-hover table-striped">
        <thead>
          <tr>
            <th></th>
            <th>Key</th>
            <th>Path</th>
            <th>Other path</th>
          </tr>
        </thead>
        <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>
              <td>
                <%= duplicate.key %>
              </td>
              <td>
                <%= path_without_root_or_locales duplicate.file_path %>
              </td>
              <td>
                <%= path_without_root_or_locales other.file_path %>
              </td>
            </tr>
          <% end %>
          <% if count == 0 %>
            <tr>
              <td colspan="4">No duplicates was found</td>
            </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  </div>

  <% if count > 0 %>
    <div class="panel panel-default">
      <div class="panel-body">
        <input class="btn btn-primary" type="submit" value="Delete duplicates" />
      </div>
    </div>
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
awesome_translations-0.0.67 app/views/awesome_translations/duplicates/index.html.erb
awesome_translations-0.0.66 app/views/awesome_translations/duplicates/index.html.erb
awesome_translations-0.0.65 app/views/awesome_translations/duplicates/index.html.erb
awesome_translations-0.0.64 app/views/awesome_translations/duplicates/index.html.erb
awesome_translations-0.0.63 app/views/awesome_translations/duplicates/index.html.erb
awesome_translations-0.0.62 app/views/awesome_translations/duplicates/index.html.erb
awesome_translations-0.0.61 app/views/awesome_translations/duplicates/index.html.erb
awesome_translations-0.0.60 app/views/awesome_translations/duplicates/index.html.erb
awesome_translations-0.0.59 app/views/awesome_translations/duplicates/index.html.erb