1
0

Removed some table borders

This commit is contained in:
cryptogopher 2020-05-02 17:44:50 +02:00
parent b3f7199f93
commit 85ec7efa16
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<tr id="meal-<%= m.id %>" class="primary meal project idnt idnt-1" <tr id="meal-<%= m.id %>" class="primary meal project idnt idnt-1"
style="background-color: #d0e0e3;"> style="background-color: #d0e0e3;">
<td class="name unwrappable"> <td class="name unwrappable" style="border-right: none;">
<b><%= "#{t '.label_meal'} ##{index+1}" %></b> <b><%= "#{t '.label_meal'} ##{index+1}" %></b>
<% if m.eaten_at %> <% if m.eaten_at %>
<%= " at #{m.eaten_at.strftime('%R')}" %> <%= " at #{m.eaten_at.strftime('%R')}" %>
@ -13,7 +13,7 @@
</td> </td>
<td id="notes-links-<%= m.id %>" class="unwrappable" <td id="notes-links-<%= m.id %>" class="unwrappable"
style="text-align: left; border-left: none; width: 1%;"> style="text-align: left; border-left: none; border-right: none; width: 1%;">
<%= link_to l(:button_cancel), '', class: 'icon icon-cancel', style: 'display: none;', <%= link_to l(:button_cancel), '', class: 'icon icon-cancel', style: 'display: none;',
onclick: "$(event.target).closest('tr').find('form').remove(); onclick: "$(event.target).closest('tr').find('form').remove();
$('td[id=notes-#{m.id}]').contents().show(); $('td[id=notes-#{m.id}]').contents().show();
@ -34,7 +34,7 @@
</td> </td>
<% end %> <% end %>
<td class="value ellipsible"></td> <td class="value ellipsible" style="border-left: none;"></td>
<% @quantities.each do |q| %> <% @quantities.each do |q| %>
<td class="value ellipsible"> <td class="value ellipsible">
<%= format_value(@nutrient_summary[q][m], @nutrients[q][:precision]) %> <%= format_value(@nutrient_summary[q][m], @nutrients[q][:precision]) %>

View File

@ -1,10 +1,10 @@
<tr id="date-<%= date.strftime('%Y%m%d') %>" class="date" style="background-color: #fff2cc;"> <tr id="date-<%= date.strftime('%Y%m%d') %>" class="date" style="background-color: #fff2cc;">
<td class="date" colspan="2"> <td class="date" colspan="2" style="border-right: none;">
<h3 style="margin: 0;"> <h3 style="margin: 0;">
<%= date == Date.current ? 'Today' : date.strftime('%F') %> <%= date == Date.current ? 'Today' : date.strftime('%F') %>
</h3> </h3>
</td> </td>
<td class="value ellipsible"></td> <td class="value ellipsible" style="border-left: none;"></td>
<% @quantities.each do |q| %> <% @quantities.each do |q| %>
<td class="value ellipsible"> <td class="value ellipsible">
<%= format_value(@nutrient_summary[q][date], @nutrients[q][:precision]) %> <%= format_value(@nutrient_summary[q][date], @nutrients[q][:precision]) %>