Sha256: 0e19ae4a68dace23188386f3a27813b96eb0ea318246f1fb88878309a689bed0

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

<table class="list">
  <thead>
    <tr>
      <th>Type</th>
      <th>Status</th>
      <% if show_target %><th>Target</th><% end %>
      <th>Created</th>
    </tr>
  </thead>
  <tbody>
    <% jobs.each_with_index do |job, i| %>
    <tr<%= cycle("", " class='alt'") %>>
      <td><%= job.name %></td>
      <td><%= job.status %></td>
      <%- if show_target -%>
        <%- if job.resource -%>
          <td><a href="/projects/<%= job.resource.project.id %>/resources/<%= job.resource.id %>"><%= job.resource.name %></a></td>
        <%- elsif job.scenario -%>
          <td><a href="/projects/<%= job.scenario.project.id %>/scenarios/<%= job.scenario.id %>"><%= job.scenario.name %></a></td>
        <%- elsif job.import -%>
          <td><%= job.import.name %> (Project: <a href="/projects/<%= job.import.project_id %>"><%= job.import.project.name %></a>)</td>
        <%- else -%>
          <td>N/A</td>
        <%- end -%>
      <%- end -%>
      <td><%= timeago(job.created_at) %></td>
    </tr>
    <% end %>
  </tbody>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coupler-0.0.9-java webroot/views/jobs/list.erb
coupler-0.0.8-java webroot/views/jobs/list.erb