Sha256: 0a3bd62e8edc964b06d2dabd5e369e066f51ee4a612e9a14585855d89410fac4

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 KB

Contents

<% if @transformations.empty? %>
  <p>There are currently no transformations for this resource.</p>
<% else %>
  <table class="list">
    <thead>
      <tr>
        <th>#</th>
        <th>Source</th>
        <th>Transformer</th>
        <th>Target</th>
        <th></th>
      </tr>
    </thead>
    <tbody>
    <% @transformations.each do |transformation| %>
      <tr<%= cycle('', ' class="alt"') %>>
        <td><%= transformation.position %></td>
        <td><%= transformation.source_field.name %></td>
        <td><%= transformation.transformer.name %></td>
        <td<%= ' class="altered-field"' if transformation.result_field.is_generated %>><%= transformation.result_field.name %></td>
        <td><%= delete_link("<span class='ui-icon ui-icon-trash'></span>", "/projects/#{@project.id}/resources/#{@resource.id}/transformations/#{transformation.id}") if transformation.deletable? %></td>
      </tr>
    <% end %>
    </tbody>
  </table>
<% end %>
<p>
  <a href="/projects/<%= @project.id %>/resources/<%= @resource.id %>/transformations/new">New transformation</a>
</p>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coupler-0.0.9-java webroot/views/transformations/list.erb
coupler-0.0.8-java webroot/views/transformations/list.erb
coupler-0.0.7-java webroot/views/transformations/list.erb
coupler-0.0.6-java webroot/views/transformations/list.erb
coupler-0.0.4-java webroot/views/transformations/list.erb
coupler-0.0.3-java webroot/views/transformations/list.erb
coupler-0.0.2-java webroot/views/transformations/list.erb
coupler-0.0.1-java webroot/views/transformations/list.erb