1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/app/views/targets/_show.html.erb
cryptogopher e301665b6a Add Targets #show
Change css classes from subject-oriented to property-oriented
2021-05-05 12:42:30 +02:00

13 lines
564 B
Plaintext

<tr class="details">
<td class="topleft">
<%= link_to l(:button_close), "#", {class: 'icon icon-close',
onclick: '$(this).closest("tr").nextUntil("tr.date", "tr:not(.details)").show()
.addBack().first().remove(); return false;'} %>
</td>
<% content = @quantities.keys.sort_by(&:lft).inject('') do |output, q| %>
<% raw "#{output}#{target_markup(@effective_from, q, @quantities[q])}\n" %>
<% end %>
<td class="topleft" colspan="<%= @goal.exposures.length + 1 %>"
style="white-space:pre-line;"><%= content %></td>
</tr>