Sha256: 1a09084f1e7990a8dfeb66d2bc3ac6c22f56b9e0ec09a6637a7e93ae4f013a82

Contents?: true

Size: 1.26 KB

Versions: 35

Compression:

Stored size: 1.26 KB

Contents

<div style="">
  <% if @to %>  

    <h1 class='wi'><%= @to %> (App URL)</h1>

    <table class='queues'>
      <tr>
        <th>Translations (Browser Location Bar) </th>
      </tr>
      <% for translation in Rewritten.get_all_translations(@to) %>
        <tr>
          <td class=''><a href="<%= translation %>" target="new"><%= translation %></td>
          </tr>
        <% end %>
      </table>

      <div style="float :left">

        <p>
        From a SEO perspective it's wise to keep the links and just 
        <a href='<%= u("/edit?to=#{escape(@to)}") %>'>add another translation</a> resulting in a 301 redirect.
        </p>
        <p>
        Are you sure you want to delete all translations? THIS CANNOT BE UNDONE.
        </p>

        <form action='<%= u("/delete_all")%>' method="post" style="margin-top: 10px ">  
          <input type="hidden" name="_method" value="delete">  
          <input type="hidden" name="from" value="<%= @from %>">
          <input type="hidden" name="to" value="<%= @to %>">
          <input type="submit" value="Yes, I know; please do remove everything!">
          <a href='<%= u("/to?to=#{escape(@to)}") %>'>Cancel</a>  
        </form>  
      </div>
    <% else %>  
      <p>No translations found.</p>  
    <% end %>
  </div>  

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
rewritten-0.16.5 lib/rewritten/server/views/delete_all.erb
rewritten-0.16.4 lib/rewritten/server/views/delete_all.erb
rewritten-0.16.3 lib/rewritten/server/views/delete_all.erb
rewritten-0.16.2 lib/rewritten/server/views/delete_all.erb
rewritten-0.16.1 lib/rewritten/server/views/delete_all.erb
rewritten-0.16.0 lib/rewritten/server/views/delete_all.erb
rewritten-0.15.2 lib/rewritten/server/views/delete_all.erb
rewritten-0.15.1 lib/rewritten/server/views/delete_all.erb
rewritten-0.15.0 lib/rewritten/server/views/delete_all.erb
rewritten-0.14.2 lib/rewritten/server/views/delete_all.erb
rewritten-0.14.1 lib/rewritten/server/views/delete_all.erb
rewritten-0.14.0 lib/rewritten/server/views/delete_all.erb
rewritten-0.13.1 lib/rewritten/server/views/delete_all.erb
rewritten-0.13.0 lib/rewritten/server/views/delete_all.erb
rewritten-0.12.1 lib/rewritten/server/views/delete_all.erb
rewritten-0.12.0 lib/rewritten/server/views/delete_all.erb
rewritten-0.11.1 lib/rewritten/server/views/delete_all.erb
rewritten-0.11.0 lib/rewritten/server/views/delete_all.erb
rewritten-0.10.0 lib/rewritten/server/views/delete_all.erb
rewritten-0.9.1 lib/rewritten/server/views/delete_all.erb