Sha256: 39ef448ea186152c55e110225af331bea4b3b3d83edb8ce45d6d18b773943e48
Contents?: true
Size: 1.42 KB
Versions: 9
Compression:
Stored size: 1.42 KB
Contents
<% content_for(:header_title) { "Duplicates" } %> <%= simple_form_for :duplicates do |f| %> <% 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"> <%= f.button :submit, "Delete duplicates" %> </div> </div> <% end %> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems