Sha256: d85b66710bfefe95dcb2f83d60a530dd3be2dbb0dd8e44786e737721b78b19a8

Contents?: true

Size: 1.19 KB

Versions: 23

Compression:

Stored size: 1.19 KB

Contents

<%# @subtabs = resque.queues unless partial? || params[:id].nil? %>

<h1 class='wi'>Translations</h1>

<p class='intro'>The list below contains all the registered translations from an 
url to target url.  To view all translations for a target click on the
target URL.</p>

<p><a href="<%= u('/new') %>"> + New Translation </a></p>
<p><a href="<%= u('/cleanup') %>"> % Cleanup </a></p>

<form method="get">
  <label>Filter (use <b>* ? []</b> as glob-style patterns):</label> <input type="text" name="f" value="<%= params[:f] %>"/>
  <a href="<%= u('/translations') %>"> clear </a>
</form>

<p class='sub'>
Showing <%= @start + 1%> to <%= [@size, @start + Rewritten.per_page].min %> of <b><%= @size %></b> translations
<% if params[:f] && params[:f] != '' %>
  matching: <%= params[:f] %>.
<% else %>.<% end %>
</p>

<table class=''>
  <tr>
    <th>from URL (Browser Location)</th>
    <th>to URL (Your App)</th>
  </tr>

  <% for from,to in @translations %>
    <tr>
      <td class=''><a href="<%= from %>" target="new"><%= from %></td>
      <td class=''><a href="<%= u("/to?to=#{escape(to)}") %>"><%= to %></td>
    </tr>
  <% end %>

    </table>


    <%= partial :next_more, :start => @start, :size => @size %>

Version data entries

23 entries across 23 versions & 1 rubygems

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