1
0

Removed unused partials

This commit is contained in:
cryptogopher 2020-08-06 21:56:44 +02:00
parent cf3bbb205d
commit c79e03d0f4
2 changed files with 0 additions and 60 deletions

View File

@ -1,27 +0,0 @@
<% total_width = 4 + @quantities.length %>
<% header = quantities_table_header(@quantities) %>
<% header.each_with_index do |row, i| %>
<tr class="header">
<% if i == 0 %>
<td colspan="2" rowspan="<%= 1 + header.length %>"
style="width:<%= 3 * 100/total_width %>%; border: none;"></td>
<td class="quantityhead" rowspan="<%= header.length %>"
style="width:<%= 100/total_width %>%;"><%= l(:field_amount) %></td>
<% end %>
<% row.each do |q, span| %>
<td class="<%= span ? 'quantityhead' : 'quantityheadempty' %>"
<%= "colspan=#{span}" if span && span > 0 %>
<%= "rowspan=#{-span}" if span && span < 0 %>
style="width: <%= (span && span > 0 ? span : 1) * 100/total_width %>%;"
title="<%= q.description %>">
<%= q.name if span %>
</td>
<% end %>
<% if i == 0 %>
<td rowspan="<%= 1 + header.length %>"
style="width:<%= 100/total_width %>%; border: none;"></td>
<% end %>
</tr>
<% end %>

View File

@ -1,33 +0,0 @@
<% if @targets.any? %>
<table class="list">
<thead>
<tr>
<th style="width:5%"><%= l(:field_effective_from) %></th>
<th><%= l(:field_name) %></th>
<th><%= l(:field_notes) %></th>
<th><%= l(:field_source) %></th>
<th style="width:5%"><%= l(:field_action) %></th>
</tr>
</thead>
<tbody>
<% @targets.select(&:persisted?).each do |t| %>
<tr id="target-<%= t.id %>" class="primary target">
<td class="date unwrappable"><%= format_date(t.effective_from) %></td>
<td class="name">
<div style="float:left;">
<%= link_to m.routine.name, readouts_measurement_routine_path(m.routine) %>
</div>
<div style="float:right;">
<small><%= " (#{pluralize(m.readouts.size, 'readout')})" %></small>
</div>
</td>
<td class="notes ellipsible"><%= m.notes %></td>
<td class="source"><%= m.source.name if m.source.present? %></td>
<td class="action unwrappable"><%= action_links(m) %></td>
</tr>
<% end %>
</tbody>
</table>
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>