Sha256: 4dbefb30c32ba834a54d9cf19bf1a67aeb57ffa62bce5bc9edb4f7e887ab4fef
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
<table id="results"> <thead> <tr class="header"> <% if @references %> <th>Key</th> <th>Master translation [<%= I18n.default_locale %>]</th> <% else %> <th>Key</th> <% end %> <th>Content [<%= I18n.locale %>]</th> </tr> </thead> <tbody> <% unless @references %> <% @translations.each do |x| %> <tr> <td class='key'><%= x.key %></td> <td class="content" id="translation_<%= x.id %>"> <%= best_in_place x, :value, :type => :textarea, :path => translation_path(x), :sanitize => false %> </td> </tr> <% end %> <% else %> <% @references.each do |x| %> <% trans = @translations.detect{|y| y.key == x.key} %> <tr<%= " id=translation_#{trans.id}" if trans %>> <td style='width:5%'><%= x.key %></td> <td style='width:50%'><%= x.value %></td> <td style='width:50%'> <% if trans %> <%= best_in_place trans, :value, :type => :textarea, :path => translation_path(trans), :sanitize => false %> <% else %> <%= link_to "Create this missing translation", missing_translations_path %> <% end %> </td> </tr> <% end %> <% end %> </tbody> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
interpret-1.1.2 | app/views/interpret/translations/_listing.html.erb |